MediaWiki:Gadget-skinTogglesNew.js: Difference between revisions

Jump to navigation Jump to search
remove wg.darkmode load that doesn't exist.
No edit summary
(remove wg.darkmode load that doesn't exist.)
 
(One intermediate revision by the same user not shown)
Line 98: Line 98:


if (currentReader) {
if (currentReader) {
                $('body').addClass('wgl-readermode');
mw.util.addPortletLink(
mw.util.addPortletLink(
'p-namespaces',
'p-namespaces',
Line 317: Line 318:


if (darkc === true) {
if (darkc === true) {
mw.loader.using(['wg.darkmode']).then(function() {
 
  $('body').addClass('wgl-darkmode')
  $('body').addClass('wgl-darkmode')
  $('body').removeClass('wgl-lightmode')
  $('body').removeClass('wgl-lightmode')
});
} else {
} else {
$('body').addClass('wgl-lightmode')
$('body').addClass('wgl-lightmode')

Navigation menu