Remove UI window hooks and wire explicit runtime callbacks
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user