From fa462e8aba913cea01ecf43faa0ee4b6c5f5dde0 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Tue, 31 Mar 2026 18:44:53 -0300 Subject: client: actually run bindSessionStorage... --- src/static/js/client/index.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/static/js/client/index.js b/src/static/js/client/index.js index cd617bea..9296dff1 100644 --- a/src/static/js/client/index.js +++ b/src/static/js/client/index.js @@ -60,6 +60,7 @@ const clientInfo = window.hsmusicClientInfo = Object.create(null); // So for example, all modules' getPageReferences steps are evaluated, then // all modules' addInternalListeners steps are evaluated, and so on. const setupSteps = { + bindSessionStorage: [], getPageReferences: [], addInternalListeners: [], mutatePageContent: [], @@ -322,7 +323,11 @@ function evaluateBindSessionStorageStep(bindSessionStorage) { function evaluateStep(stepsObject, key) { for (const step of stepsObject[key]) { try { - step(); + if (key === 'bindSessionStorage') { + evaluateBindSessionStorageStep(step); + } else { + step(); + } } catch (error) { console.error(`During ${key}, failed to run ${step.name}`); console.error(error); -- cgit 1.3.0-6-gf8a5