63
edits
(not sure if this will work) |
(try and set the body class manually to emulate whatever extension powers the other wikis dark mode) |
||
Line 116: | Line 116: | ||
} | } | ||
if (CurrentDark ) { | |||
$('body').addClass('wgl-darkmode'); | |||
} | |||
if (currentDarkConditional) { | if (currentDarkConditional) { | ||
var reloadRequired = (conditionalCheck != currentDark) | var reloadRequired = (conditionalCheck != currentDark) | ||
Line 314: | Line 317: | ||
if (darkc === true) { | if (darkc === true) { | ||
mw.loader.using([' | mw.loader.using(['wg.darkmode']).then(function() { | ||
$('body').addClass('wgl-darkmode') | $('body').addClass('wgl-darkmode') | ||
$('body').removeClass('wgl-lightmode') | $('body').removeClass('wgl-lightmode') |