User:DarkMatterMan4500/twinkleglobal.js: Difference between revisions
From WikiOasis Meta
More actions
mNo edit summary |
mNo edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 28: | Line 28: | ||
}); | }); | ||
}; | }; | ||
var load = function(p) { | var load = function(p) { | ||
| Line 76: | Line 74: | ||
function main() { | function main() { | ||
if (mw.config.get('wgServer') === '//meta. | if (mw.config.get('wgServer') === '//meta.wikioasis.org') { | ||
api = new mw.Api(); | api = new mw.Api(); | ||
} else { | } else { | ||
api = new mw.ForeignApi('https://meta. | api = new mw.ForeignApi('https://meta.wikioasis.org/w/api.php'); | ||
} | } | ||