Skip to content

Commit 2b624dc

Browse files
authored
Update index.html
1 parent 42c5f71 commit 2b624dc

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

index.html

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,26 @@
1414
<meta name="msapplication-TileImage" content="/assets/img/ms-icon-144x144.png" />
1515
<meta name="apple-mobile-web-app-title" content="BlockHub" />
1616
<title>Block Hub - Bitcoin Explorer (Beta)</title>
17+
<!-- Start Single Page Apps for GitHub Pages -->
18+
<script type="text/javascript">
19+
// Single Page Apps for GitHub Pages
20+
// MIT License
21+
// https://github.com/rafgraph/spa-github-pages
22+
(function(l) {
23+
if (l.search[1] === '/' ) {
24+
var decoded = l.search.slice(1).split('&').map(function(s) {
25+
return s.replace(/~and~/g, '&')
26+
}).join('?');
27+
window.history.replaceState(null, null,
28+
l.pathname.slice(0, -1) + decoded + l.hash
29+
);
30+
}
31+
}(window.location))
32+
</script>
33+
<!-- End Single Page Apps for GitHub Pages -->
1734
</head>
1835
<body>
1936
<div id="root"></div>
2037
<script type="module" src="/src/main.tsx"></script>
2138
</body>
22-
</html>
39+
</html>

0 commit comments

Comments
 (0)