forked from NebulaServices/Nebula
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
55 lines (55 loc) · 1.69 KB
/
Copy pathindex.html
File metadata and controls
55 lines (55 loc) · 1.69 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script src="/epoxy/index.js" defer></script>
<script src="/libcurl/index.js" defer></script>
<script src="/transports/bareTransport.js" defer></script>
<script src="/uv/uv.bundle.js" defer></script>
<script src="/uv/uv.config.js" defer></script>
<script src="/dynamic/dynamic.config.js" defer></script>
<script src="/localforage/localforage.min.js" defer></script>
<script>
if ("serviceWorker" in navigator) {
window.addEventListener("load", () => {
navigator.serviceWorker
.register("/sw.js", {
scope: "/~/"
})
.then(() => {
console.log("Service Worker Registered");
try {
window.setTransport();
} catch {}
})
.catch((err) => {
console.error("Service Worker Failed to Register", err);
});
});
}
</script>
</head>
<body style="margin: 0">
<div id="app"></div>
<script type="module" src="/src/index.tsx"></script>
<script>
if (
new URL(Object.assign(document.createElement("a"), { href: "/" }).href)
.password
)
window.location.href = window.location.href;
</script>
<script>
try {
if (
!localStorage["auth"] &&
new URL(document.all.rcheck.href).password
) {
window.location.reload();
localStorage["auth"] = 1;
}
} catch {}
</script>
</body>
</html>