MediaWiki:Gadget-skinTogglesNew.js: Difference between revisions

remove wg.darkmode load that doesn't exist.
(fix readermode)
(remove wg.darkmode load that doesn't exist.)
 
Line 318: 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')