Explorar o código

Add theme listener to desktop

Toby Chui hai 4 días
pai
achega
beb476246c
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      src/web/desktop.html

+ 4 - 0
src/web/desktop.html

@@ -7321,6 +7321,10 @@
                     }
                 } catch(e) {}
             });
+            // Notify standalone browser tabs that have called ao_module_onThemeChanged
+            try {
+                localStorage.setItem('ao_system_theme', JSON.stringify({theme: theme, ts: Date.now()}));
+            } catch(e) {}
         }
 
         function toggleDesktopTheme(){