« get me outta code hell

client: actually run bindSessionStorage... - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/static
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2026-03-31 18:44:53 -0300
committer(quasar) nebula <qznebula@protonmail.com>2026-03-31 18:44:53 -0300
commitfa462e8aba913cea01ecf43faa0ee4b6c5f5dde0 (patch)
treed061a019063548cfade93814d12af414be282703 /src/static
parent57bc273a5507e95964ea8b3bb83dfdc4e9305a28 (diff)
client: actually run bindSessionStorage...
Diffstat (limited to 'src/static')
-rw-r--r--src/static/js/client/index.js7
1 files changed, 6 insertions, 1 deletions
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);