MediaWiki:Gadget-Less.js: Difference between revisions

try again
(update to local)
(try again)
Line 1: Line 1:
/*
MediaWiki:Gadget-Less.js
*/
window.lessTargets = [
window.lessTargets = [
     // globals
     // globals
Line 10: Line 13:
     'MediaWiki:Gadget-toplinksDropdown.css',
     'MediaWiki:Gadget-toplinksDropdown.css',
]
]


if ( window.lessTargets.includes( mw.config.get( 'wgPageName' ).replace(new RegExp('\.less$'),'.css' ) ) ) {
if ( window.lessTargets.includes( mw.config.get( 'wgPageName' ).replace(new RegExp('\.less$'),'.css' ) ) ) {
mw.loader.load( '//near-reality.wiki/w/MediaWiki:Gadget-Less-core.js?action=raw&ctype=text/javascript' )
mw.loader.load( '//near-reality.wiki/w/MediaWiki:Gadget-Less-core.js?action=raw&ctype=text/javascript' )
}
}
mw.loader.state({
    "ext.gadget.Less": "ready"
});