Skip to content

Commit 011d18c

Browse files
authored
Merge pull request #43 from namiba-work/main
Updating 404 to be the index.html output
2 parents 531ce36 + d2e018a commit 011d18c

File tree

1 file changed

+24
-33
lines changed

1 file changed

+24
-33
lines changed

public/404.html

Lines changed: 24 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,26 @@
11
<!DOCTYPE html>
2-
<html>
3-
<head>
4-
<meta charset="utf-8">
5-
<title>Redirecting...</title>
6-
<script type="text/javascript">
7-
// GitHub Pages SPA redirect: rewrite URL after loading index.html
8-
(function() {
9-
var redirect = sessionStorage.getItem('redirect');
10-
if (redirect) {
11-
sessionStorage.removeItem('redirect');
12-
window.location.replace(redirect);
13-
} else {
14-
var l = window.location;
15-
var pathname = l.pathname;
16-
// Don't redirect if already at index.html or root
17-
if (!pathname.endsWith('/index.html') && pathname !== '/' && pathname !== '/index.html') {
18-
var search = l.search || '';
19-
var hash = l.hash || '';
20-
var newUrl = '/index.html';
21-
sessionStorage.setItem('redirect', pathname + search + hash);
22-
window.location.replace(newUrl);
23-
}
24-
}
25-
})();
26-
</script>
27-
<style>
28-
body { background: #fff; color: #222; font-family: system-ui, sans-serif; }
29-
</style>
30-
</head>
31-
<body>
32-
<h1>Redirecting...</h1>
33-
<p>If you are not redirected, <a href="/index.html">click here</a>.</p>
34-
</body>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
7+
<link rel="stylesheet" href="/OpenDevicePartnership.github.io/tailwind-d3251e5794d0c78f.css"/>
8+
9+
<script type="module">
10+
import init, * as bindings from '/OpenDevicePartnership.github.io/odp-93af51283dc1c08a.js';
11+
const wasm = await init({ module_or_path: '/OpenDevicePartnership.github.io/odp-93af51283dc1c08a_bg.wasm' });
12+
13+
14+
window.wasmBindings = bindings;
15+
16+
17+
dispatchEvent(new CustomEvent("TrunkApplicationStarted", {detail: {wasm}}));
18+
19+
</script>
20+
21+
22+
<link rel="icon" href="images/odpicon.ico" type="image/x-icon">
23+
<link href="https://fonts.googleapis.com/css2?family=Geist:wght@400;600&display=swap" rel="stylesheet">
24+
<link rel="modulepreload" href="/OpenDevicePartnership.github.io/odp-93af51283dc1c08a.js" crossorigin="anonymous"><link rel="preload" href="/OpenDevicePartnership.github.io/odp-93af51283dc1c08a_bg.wasm" crossorigin="anonymous" as="fetch" type="application/wasm"></head>
25+
<body></body>
3526
</html>

0 commit comments

Comments
 (0)