MediaWiki:Gadget-I18n-js.js: Difference between revisions
From Tardis Wiki, the free Doctor Who reference
m
Actually replace the API endpoint of other-language wikis
m (Add a newline for readability) |
m (Actually replace the API endpoint of other-language wikis) |
||
Line 802: | Line 802: | ||
// adjust endpoint when loading from interlanguage wiki | // adjust endpoint when loading from interlanguage wiki | ||
if (customSource[1]) { | if (customSource[1]) { | ||
apiEndpoint.replace( | apiEndpoint = apiEndpoint.replace( | ||
/api\.php$/, | /api\.php$/, | ||
customSource[1] + '$&' | customSource[1] + '$&' |