User:DarkMatterMan4500/twinkleglobal.js: Difference between revisions
From WikiOasis Meta
More actions
mNo edit summary |
mNo edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| 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'); | ||
} | } | ||