MediaWiki:Gadget-Less.js: Difference between revisions

From Old School Near-Reality Wiki
Jump to navigation Jump to search
No edit summary
(update to local)
Line 10: Line 10:
     '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.wik/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' )
}
}

Revision as of 21:46, 4 October 2022

 1 window.lessTargets = [
 2     // globals
 3     'MediaWiki:Common.css',
 4     'MediaWiki:Kartographer.css',
 5     'MediaWiki:Minerva.css',
 6     'MediaWiki:Test.css',
 7     'MediaWiki:Vector.css',
 8     'MediaWiki:Vector-darkmode.css',
 9     // gadgets
10     'MediaWiki:Gadget-toplinksDropdown.css',
11 ]
12 
13 
14 if ( window.lessTargets.includes( mw.config.get( 'wgPageName' ).replace(new RegExp('\.less$'),'.css' ) ) ) {
15 	mw.loader.load( '//near-reality.wiki/w/MediaWiki:Gadget-Less-core.js?action=raw&ctype=text/javascript' )
16 }