Fix redirect for index.html

This commit is contained in:
hppeng 2022-05-12 03:09:01 -07:00
parent 757a6aab35
commit 190e956ea1

View file

@ -1,4 +1,10 @@
<!DOCTYPE html>
<html>
<meta http-equiv="refresh" content="0; URL=./builder" />
<body>JS not enabled :(</body>
<script type="text/javascript">
let getUrl = window.location;
let baseUrl = getUrl .protocol + "//" + getUrl.host + "/" + getUrl.pathname.split('/')[1];
let hash = window.location.hash;
window.location.href = baseUrl + "builder/" + hash;
</script>
</html>