-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
40 lines (39 loc) · 985 Bytes
/
index.html
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
<!doctype html>
<html>
<head>
<meta charset="UTF-8" />
<title>DreamPip</title>
<script>
const home = 'https://www.dreampip.com/dash';
const getHome = async () => {
try {
return await fetch(home);
} catch (e) {
return { ok: false, status: 500, message: JSON.stringify(e) };
}
};
const init = async () => {
const response = await getHome();
if (response.ok && response.status === 200) {
window.location.href = home;
} else {
setTimeout(() => init(), 2000);
}
};
init();
</script>
</head>
<body
style="
height: 100vh;
width: 100vw;
background-color: #353535;
display: flex;
align-items: center;
justify-content: center;
"
>
<img style="max-width: 320px" src="./icons/icon-white.svg" alt="DreamPip Logo" />
<script type="module" src="/src/renderer.ts"></script>
</body>
</html>