summaryrefslogtreecommitdiffstats
path: root/src/webapp/index.html
blob: 557f9860c95a02fa2994abc123f212b745e34c2c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!DOCTYPE html>
<html lang="en" theme="dark">

<head>
      <meta charset="UTF-8" />
      <link rel="icon" href="/favicon.ico" />
      <meta name="viewport" content="width=device-width, initial-scale=1.0" />
      <script>
            if (JSON.parse(sessionStorage.getItem("preferences") ?? "{}")?.theme === 1 || window.matchMedia("(prefers-color-scheme: dark)").matches) {
                  document.documentElement.setAttribute("theme", "dark");
            } else {
                  document.documentElement.setAttribute("theme", "light");
            }
      </script>
      <title>Bookmark thing</title>
</head>

<body>
      <div id="app"></div>
      <script type="module" src="/src/main.ts"></script>
</body>

</html>