-
Notifications
You must be signed in to change notification settings - Fork 124
/
Copy pathindex.html
49 lines (45 loc) · 2.11 KB
/
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
41
42
43
44
45
46
47
48
49
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<!-- maximum-scale=1 to avoid editable autozoom on safari
See: https://stackoverflow.com/questions/2989263/disable-auto-zoom-in-input-text-tag-safari-on-iphone
-->
<meta
name="viewport"
content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, viewport-fit=cover"
/>
<meta name="mobile-web-app-capable" content="yes" />
<!-- Favicons -->
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
<!-- Fixes PWA w/o service worker bug. See https://stackoverflow.com/questions/49689208/issue-with-pwa-on-ios-113 -->
<!-- <link rel="manifest" href="/site.webmanifest"> -->
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#333333" />
<link href="/fonts/lora.css" rel="stylesheet" />
<meta name="msapplication-TileColor" content="#000000" />
<meta name="theme-color" content="#000" />
<title>em</title>
</head>
<body>
<div id="root"></div>
<script>
// Prevent the React DevTools advertisement in Puppeteer tests and development mode.
// https://github.com/cybersemics/em/issues/2251
if (navigator.webdriver || '%MODE%' === 'development') {
const info = console.info.bind(console)
console.info = (...args) => {
if (typeof args[0] === 'string' && args[0].startsWith('%cDownload the React DevTools')) return
info(...args)
}
}
// Load theme synchronously before React loads, otherwise it causes a white flash.
const theme = localStorage.getItem('storageCache/theme')?.toLowerCase() || 'dark'
document.documentElement.style.backgroundColor = theme === 'dark' ? '#000' : '#fff'
document.body.setAttribute('data-color-mode', theme)
document.body.setAttribute('data-env', navigator.webdriver ? 'test' : '%MODE%')
</script>
<script type="module" src="/src/index.tsx"></script>
</body>
</html>