Browse Source

Define callback.

pull/24/head
Ben Kurtovic 12 years ago
parent
commit
0e326193e0
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      static/js/potd.js

+ 1
- 0
static/js/potd.js View File

@@ -20,6 +20,7 @@ function set_background_potd() {


function set_background_list() { function set_background_list() {
if (cache_cookie()) return; if (cache_cookie()) return;
var callback = "earwigpotd1";
var base = "//commons.wikimedia.org/w/api.php?action=query&prop=revisions&rvprop=content&format=json&titles=User:The+Earwig/POTD"; var base = "//commons.wikimedia.org/w/api.php?action=query&prop=revisions&rvprop=content&format=json&titles=User:The+Earwig/POTD";
var url = base + "&callback=" + callback; var url = base + "&callback=" + callback;




Loading…
Cancel
Save