Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
49 lines (49 loc) · 2.01 KB
/
Copy pathindex.html
File metadata and controls
49 lines (49 loc) · 2.01 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<script>
// Dev Tools is served at /cws/debug/ on an appliance and under /VirtualControl/Rooms/<RoomId>/
// on VC-4. Set <base> from the page's own path so the relative asset URLs resolve from the app
// root, including on deep links such as .../cws/debug/app01/versions. Match the /cws/debug
// mount itself, not the first /cws/, since a VC-4 room can be named CWS. Keep in step with
// getHostLayout in src/shared/functions/hostPaths.ts. Must stay above every link and script tag.
(function () {
var path = window.location.pathname;
var mount = /\/cws\/debug(?:\/|$)/i.exec(path);
if (!mount) return;
var base = document.createElement('base');
base.href = path.slice(0, mount.index) + '/cws/debug/';
document.head.appendChild(base);
})();
</script>
<script>
// Set the colour theme before first paint so a dark page doesn't flash white. Keep in step
// with resolveTheme in src/shared/hooks/useTheme.ts.
(function () {
var theme = null;
try {
theme = window.localStorage.getItem('essentials-devtools-theme');
} catch (e) {}
if (theme !== 'light' && theme !== 'dark') {
theme =
window.matchMedia &&
window.matchMedia('(prefers-color-scheme: dark)').matches
? 'dark'
: 'light';
}
document.documentElement.setAttribute('data-bs-theme', theme);
})();
</script>
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta name="description" content="Essentials Web Config App" />
<title>Essentials Developer Tools</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<script type="module" src="/src/index.tsx"></script>
</body>
</html>