diff --git a/src/web/App.mjs b/src/web/App.mjs index e84363f8..17810c65 100644 --- a/src/web/App.mjs +++ b/src/web/App.mjs @@ -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 diff --git a/src/web/Manager.mjs b/src/web/Manager.mjs index 7cde638d..406c247f 100755 --- a/src/web/Manager.mjs +++ b/src/web/Manager.mjs @@ -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