mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-24 19:52:07 +08:00
[mobile] extended theme switching
This commit is contained in:
@ -26,6 +26,14 @@ class ThemesController {
|
||||
}
|
||||
|
||||
this.switchDarkTheme(theme, true);
|
||||
|
||||
$$(window).on('storage', e => {
|
||||
if ( e.key == LocalStorage.prefix + 'ui-theme' ) {
|
||||
if ( !!e.newValue ) {
|
||||
this.switchDarkTheme(JSON.parse(e.newValue), true);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
get isCurrentDark() {
|
||||
|
||||
Reference in New Issue
Block a user