Skip to content

Commit 9a8a0fd

Browse files
authored
Update index.html
1 parent 0d424c4 commit 9a8a0fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
</div>
2323

2424
<script>
25-
const path = location.hash.replace(/^#/, "") || "Empty";
25+
const path = (location.hash && location.hash !== "#") ? location.hash.slice(1) : "Empty";
2626
const script = document.createElement("script");
2727
script.src = `tables/${path}.js`;
2828
script.onload = () => initPlanilha();

0 commit comments

Comments
 (0)