2022-02-17 18:25:54 -05:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8" />
|
2022-07-01 08:08:16 -05:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
|
2023-04-03 02:40:56 -05:00
|
|
|
<title></title>
|
2024-07-08 03:52:15 -05:00
|
|
|
<!-- Preload well-known APIs -->
|
2023-09-05 20:55:22 -05:00
|
|
|
<script>
|
2024-07-08 03:52:15 -05:00
|
|
|
const searchParams = new URLSearchParams(window.location.search);
|
|
|
|
const isPreview = searchParams.has('preview');
|
|
|
|
// Preview mode does not query phrases
|
|
|
|
const preLoadLinks = isPreview ? [] : ['/api/.well-known/phrases'];
|
2023-09-05 20:55:22 -05:00
|
|
|
|
|
|
|
preLoadLinks.forEach((linkUrl) => {
|
|
|
|
const link = document.createElement('link');
|
|
|
|
link.rel = 'preload';
|
2024-07-08 03:52:15 -05:00
|
|
|
link.href = linkUrl;
|
2023-09-05 20:55:22 -05:00
|
|
|
link.as = 'fetch';
|
|
|
|
link.crossOrigin = 'anonymous';
|
|
|
|
document.head.appendChild(link);
|
|
|
|
});
|
|
|
|
</script>
|
2022-02-17 18:25:54 -05:00
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
<noscript>You need to enable JavaScript to run this app.</noscript>
|
|
|
|
<div id="app"></div>
|
|
|
|
<script type="module" src="index.tsx"></script>
|
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|