Skip to content

Create polished demo videos without editing skills. Mac/Windows/Linux

Clarify fallback when startup theme storage is unavailable

webadderall1910427cd121
diff --git a/index.html b/index.html
index b5a85511..60e65502 100644
--- a/index.html
+++ b/index.html
@@ -15,7 +15,7 @@
try {
preference = window.electronAPI?.getAppSetting("recordly.theme") ||
localStorage.getItem("recordly.theme") || "system";
- } catch {}
+ } catch { /* Use the system theme when persisted settings are unavailable. */ }
document.documentElement.dataset.theme =
preference === "dark" ||
(preference !== "light" && matchMedia("(prefers-color-scheme: dark)").matches)