User:DarkMatterMan4500/twinkleglobal.js: Difference between revisions
From WikiOasis Meta
More actions
Reverted the last edit(s) to revision 4458 by DarkMatterMan4500 Tag: Undo |
mNo edit summary |
||
| Line 74: | 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'); | ||
} | } | ||