Radish alpha
r
Radicle desktop app
Radicle
Git (anonymous pull)
Log in to clone via SSH
Fix flickering on app load due to theme being loaded later
✓ CI success Rūdolfs Ošiņš committed 1 year ago
commit 6017c191a9f6b62a03075970dcaf73be6d86ee26
parent 560891d1a658e47e90c87c3e59dcf33f468f8a20
1 passed (1 total) View logs
1 file changed +6 -0
modified index.html
@@ -1,6 +1,12 @@
<!doctype html>
<html lang="en">
  <head>
+
    <script>
+
      // Avoid flickering on app start.
+
      if (localStorage.getItem("theme") === "dark") {
+
        document.documentElement.setAttribute("data-theme", "dark");
+
      }
+
    </script>
    <meta charset="UTF-8" />
    <link rel="icon" href="/radicle.svg" type="image/svg+xml" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />