Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
54 lines (51 loc) · 1.84 KB
/
Copy pathindex.html
File metadata and controls
54 lines (51 loc) · 1.84 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Security-Policy" content="script-src 'self' file://* 'unsafe-inline' 'unsafe-eval'">
<title>poi</title>
<link rel="stylesheet" id="bootstrap-css">
<link rel="stylesheet" id="normalize-css">
<link rel="stylesheet" id="blueprint-css">
<link rel="stylesheet" id="blueprint-icon-css">
<link rel="stylesheet" id="fontawesome-css">
<script>
window.isMain = true
/*
install before babel-hook so it covers the earliest possible failures
(e.g. views/env's own top-level requires), taging `[init]` as listeners installed during init
This exists because:
- Chromium's default console forwarding truncates uncaught errors
to message + source line with no stack
- and lib/sentry's init() runs too late in views/env to catch a crash in its own import chain.
console.error here flows into stderr to help with troubleshooting.
*/
window.addEventListener('error', (e) => {
console.error(
'[init] uncaught error:',
e.error && e.error.stack ? e.error.stack : e.message,
)
})
window.addEventListener('unhandledrejection', (e) => {
console.error(
'[init] unhandled rejection:',
e.reason && e.reason.stack ? e.reason.stack : e.reason,
)
})
/*
the lack of listener removal is intentional, as:
- this meant to last lifespan in case uncaught issues fallthough.
- no tangible benefit bookkeeping function refs as this file **is** the entry and exit.
*/
require('./babel-hook')(require('./babel-register.config'));
require('./views/env');
</script>
</head>
<body>
<div id='poi' class='poi'>
<script>
require('./views/app');
require('./views/services');
</script>
</body>
</html>