listen for browser hash changes and reload recipe

This commit is contained in:
C85297 2026-07-07 09:06:12 +01:00
parent 388709037d
commit 21557e0dcc
No known key found for this signature in database
2 changed files with 2 additions and 1 deletions

View File

@ -828,7 +828,7 @@ class App {
/**
* Handler for the history popstate event.
* Handler for history popstate and hashchange events.
* Reloads parameters from the URL.
*
* @param {event} e

View File

@ -125,6 +125,7 @@ class Manager {
window.addEventListener("focus", this.window.windowFocus.bind(this.window));
window.addEventListener("statechange", this.app.stateChange.bind(this.app));
window.addEventListener("popstate", this.app.popState.bind(this.app));
window.addEventListener("hashchange", this.app.popState.bind(this.app));
window.addEventListener("message", this.input.handlePostMessage.bind(this.input));
// Controls