-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathquick-edit.html
More file actions
27 lines (27 loc) · 930 Bytes
/
Copy pathquick-edit.html
File metadata and controls
27 lines (27 loc) · 930 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="color-scheme" content="light dark" />
<title>R3write quick edit</title>
<script>
(function () {
try {
var stored = localStorage.getItem("r3write.theme.v1");
var choice = stored === "light" || stored === "dark" || stored === "system" ? stored : "system";
var resolved = choice === "system"
? (window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light")
: choice;
document.documentElement.dataset.theme = resolved;
} catch (e) {
document.documentElement.dataset.theme = "light";
}
})();
</script>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/entry-quick-edit.tsx"></script>
</body>
</html>