Remove UI window hooks and wire explicit runtime callbacks

This commit is contained in:
2026-02-07 01:45:52 +01:00
parent 37db70e67e
commit 78701cebf2
4 changed files with 32 additions and 20 deletions

View File

@@ -19,6 +19,7 @@ import {
updatePhaseNav,
openConfirmModal,
openResultsRelockModal,
configureUiRuntime,
} from "./js/ui.js";
import {
loadState,
@@ -29,6 +30,12 @@ import {
refreshPhaseData,
} from "./js/data.js";
initI18n();
configureUiRuntime({
refreshPhaseData,
loadSuggestData,
loadVoteData,
handleAuthError: (err) => handleAuthError(err, clearUserState),
});
function setupHandlers() {
const toggleAuth = $("auth-toggle");