-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
48 lines (45 loc) · 2.16 KB
/
index.html
File metadata and controls
48 lines (45 loc) · 2.16 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
<!doctype html>
<html lang="sv">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/png" href="/DoneTogether/pwa-icon.png" />
<link rel="apple-touch-icon" href="/DoneTogether/pwa-icon.png">
<link rel="manifest" href="/DoneTogether/manifest.json">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="theme-color" content="#09090b">
<meta name="viewport" content="width=device-width, initial-scale=1.0, healthy-ui=true" />
<meta name="description"
content="Skapa och dela planer i realtid med vänner och team. Samarbeta och slutför tillsammans." />
<title>DoneTogether</title>
</head>
<body>
<div id="root"></div>
<script>
window.onerror = function (message, source, lineno, colno, error) {
document.body.innerHTML = `
<div style="background:#09090b;color:#fff;min-height:100vh;padding:20px;font-family:monospace;font-size:14px;">
<h1 style="color:#ef4444;margin-bottom:20px;">CRITICAL ERROR (Pre-React)</h1>
<div style="background:#18181b;padding:20px;border:1px solid #27272a;border-radius:12px;overflow:auto;">
<div style="color:#f87171;margin-bottom:10px;">${message}</div>
<div style="color:#71717a;">${source}:${lineno}:${colno}</div>
<pre style="margin-top:15px;color:#a1a1aa;white-space:pre-wrap;">${error ? error.stack : 'No stack trace'}</pre>
</div>
</div>
`;
};
// Catch unhandled promise rejections
window.onunhandledrejection = function (event) {
document.body.innerHTML = `
<div style="background:#09090b;color:#fff;min-height:100vh;padding:20px;font-family:monospace;font-size:14px;">
<h1 style="color:#ef4444;margin-bottom:20px;">UNHANDLED PROMISE REJECTION</h1>
<div style="background:#18181b;padding:20px;border:1px solid #27272a;border-radius:12px;overflow:auto;">
<div style="color:#f87171;margin-bottom:10px;">Reason: ${event.reason}</div>
</div>
</div>
`;
};
</script>
<script type="module" src="src/main.tsx"></script>
</body>
</html>