Explorar el Código

Add theme listener to desktop

Toby Chui hace 4 días
padre
commit
beb476246c
Se han modificado 1 ficheros con 4 adiciones y 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(){