Skip to content

Commit

Permalink
Reload on hash change
Browse files Browse the repository at this point in the history
  • Loading branch information
thetarnav committed Apr 6, 2024
1 parent 1aca106 commit e2f1196
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions example/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ for (const [kind, hash] of example_kind_href_hashes_entries) {
}
}

/* Reload on hash change */
window.addEventListener("hashchange", () => location.reload())

/*
Wasm instance
*/
Expand Down

0 comments on commit e2f1196

Please sign in to comment.