diff options
| 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 |
| commit | fa462e8aba913cea01ecf43faa0ee4b6c5f5dde0 (patch) | |
| tree | d061a019063548cfade93814d12af414be282703 /src | |
| parent | 57bc273a5507e95964ea8b3bb83dfdc4e9305a28 (diff) | |
client: actually run bindSessionStorage...
Diffstat (limited to 'src')
| -rw-r--r-- | src/static/js/client/index.js | 7 |
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); |