mirror of
https://github.com/writefreely/writefreely
synced 2025-02-17 16:28:23 +00:00
Fix light / dark mode toggle in WYSIWYG editor
This commit is contained in:
parent
d7c9f56b40
commit
6f665e7e4b
1 changed files with 1 additions and 1 deletions
|
@ -82,7 +82,7 @@
|
|||
btns[i].src = btns[i].src.replace('_dark@2x.png', '@2x.png');
|
||||
}
|
||||
} else {
|
||||
TextnewTheme = 'light';
|
||||
newTheme = 'light';
|
||||
document.body.className = document.body.className.replace(/(?:^|\s)dark(?!\S)/g, newTheme);
|
||||
for (var i=0; i<btns.length; i++) {
|
||||
btns[i].src = btns[i].src.replace('@2x.png', '_dark@2x.png');
|
||||
|
|
Loading…
Add table
Reference in a new issue