-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
45 lines (45 loc) · 2 KB
/
Copy pathindex.html
File metadata and controls
45 lines (45 loc) · 2 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Toolbox</title>
<!-- Google Analytics 4 — must never affect page rendering. Every bit
of GA-touching code is wrapped (try/catch in our code, plus a
capture-phase window error handler that suppresses errors whose
source is googletagmanager.com / google-analytics.com) so
adblockers, COEP blocks, GFW blackholes, or upstream returning
broken JS cannot take the app down or trigger Vite's HMR overlay. -->
<script>
// Must register before the gtag <script> below so we catch its load errors.
window.addEventListener('error', function (e) {
var src = (e && e.filename) || (e && e.target && e.target.src) || '';
if (typeof src === 'string' &&
(src.indexOf('googletagmanager.com') !== -1 ||
src.indexOf('google-analytics.com') !== -1)) {
e.preventDefault();
if (typeof e.stopImmediatePropagation === 'function') e.stopImmediatePropagation();
}
}, true);
</script>
<script async crossorigin="anonymous"
src="https://www.googletagmanager.com/gtag/js?id=G-WLZL6FRZ31"
onerror="window.console&&console.warn('GA script failed to load (non-fatal)')"></script>
<script>
try {
window.dataLayer = window.dataLayer || [];
window.gtag = function gtag(){
try { window.dataLayer.push(arguments) } catch (_) { /* swallow */ }
};
window.gtag('js', new Date());
// Disable auto pageview — fired manually from React Router on every route change.
window.gtag('config', 'G-WLZL6FRZ31', { send_page_view: false });
} catch (_) { /* GA must never break the page */ }
</script>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>