MediaWiki:Gadget-dark-mode-toggle.js: Difference between revisions
Content deleted Content added
sync requested change from User:Nardog/dark-mode-toggle.js |
add IF wrapper for darkmode-turn-on-label; requested on talk |
||
Line 7:
// 'Dark mode' and 'Light mode' messages must match the ::before content in
// [[MediaWiki:Gadget-dark-mode-toggle-pagestyles.css]] and [[MediaWiki:Gadget-dark-mode.css]], respectively.
// Don't overwrite existing messages, if already set on a foreign wiki prior to loading this file
mw.messages.set({▼
▲ mw.messages.set({
'darkmode-turn-on-tooltip': 'Turn dark mode on',▼
'darkmode-turn-off-label': 'Light mode',
});▼
▲ });
}
$.when($.ready, mw.loader.using(['mediawiki.util', 'mediawiki.api', 'mediawiki.Uri', 'mediawiki.storage', 'es6-polyfills'])).then(function() {
|