From 21557e0dccb7c89ea2a1dc4325ab0623f4e1f12f Mon Sep 17 00:00:00 2001 From: C85297 <95289555+C85297@users.noreply.github.com> Date: Tue, 7 Jul 2026 09:06:12 +0100 Subject: [PATCH] listen for browser hash changes and reload recipe --- src/web/App.mjs | 2 +- src/web/Manager.mjs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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