Refactored instant loading setup

This commit is contained in:
squidfunk
2020-03-28 17:40:46 +01:00
parent 4d370fe903
commit edc9d6fc61
11 changed files with 114 additions and 116 deletions

View File

@@ -49,6 +49,7 @@ export function getLocationHash(): string {
export function setLocationHash(hash: string): void {
const el = document.createElement("a")
el.href = hash
el.addEventListener("click", ev => ev.stopPropagation())
el.click()
}