Jump to content

User:Begoon/vector.js: Difference between revisions

external load of Clock gadget seems to solve the errors, so it seems this was not the issue
(// mediawiki:MediaWiki:Gadget-UTCLiveClock.js - because local gadget is throwing errors (mw.util is not defined?))
(external load of Clock gadget seems to solve the errors, so it seems this was not the issue)
Line 16:
mw.loader.using('mediawiki.util').then(function () {
var conf = mw.config.get(['wgServer', 'wgScript']),
url = conf.wgServer + conf.wgScript + '?title=' + mediawikimw.util.wikiUrlencode(pageName) +
'&action=raw&ctype=text/javascript';
mw.loader.load(url); }); };
0

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.