Remove infinite loop in theme handler
@@ -20,8 +20,10 @@ const updateMyAppTheme = () => {
const themeStyle = document.getElementById("theme");
themeStyle.innerHTML = darkMode ? darkTheme : lightTheme;
+ if(nativeTheme.themeSource !== theme) {
nativeTheme.themeSource = theme;
}
+}
nativeTheme.on("updated", () => {
updateMyAppTheme();
