MediaWiki:Gadget-dark-mode-toggle.js: Difference between revisions
Content deleted Content added
... and place call in the correct place Tag: Reverted |
[follow up] Add day theme class to allow the control to show and be disabled in case of race condition Tag: Reverted |
||
Line 128:
if ( classList.contains( 'skin-theme-clientpref-night' ) || classList.contains( 'skin-theme-clientpref-os' ) ) {
classList.remove( 'skin-theme-clientpref-night', 'skin-theme-clientpref-os' );
classList.add( 'skin-theme-clientpref-day' );
mw.notify( 'Native dark mode has been enabled. Please set "Color" to light theme to avoid conflicts with the dark mode gadget to supress this message.' );
}
|