aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMiodec <[email protected]>2024-12-22 00:28:16 +0100
committerMiodec <[email protected]>2024-12-22 00:40:54 +0100
commita670438bb98931ed7f62780293f8eb5dddfddd07 (patch)
treedc37822eaec6d29fbe7b3e9ae86ce77365e9f901
parentf0a7b82725a1409e4ecc317dbec188d6cbd544c0 (diff)
downloadmonkeytype-a670438bb98931ed7f62780293f8eb5dddfddd07.tar.gz
monkeytype-a670438bb98931ed7f62780293f8eb5dddfddd07.zip
fix: css funboxes not being applied when logging in
-rw-r--r--frontend/src/ts/controllers/account-controller.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/frontend/src/ts/controllers/account-controller.ts b/frontend/src/ts/controllers/account-controller.ts
index 70191802c..c60b5d21e 100644
--- a/frontend/src/ts/controllers/account-controller.ts
+++ b/frontend/src/ts/controllers/account-controller.ts
@@ -48,6 +48,7 @@ import { navigate } from "./route-controller";
import { FirebaseError } from "firebase/app";
import * as PSA from "../elements/psa";
import defaultResultFilters from "../constants/default-result-filters";
+import { getActiveFunboxes } from "../test/funbox/list";
export const gmailProvider = new GoogleAuthProvider();
export const githubProvider = new GithubAuthProvider();
@@ -171,6 +172,11 @@ async function getDataAndInit(): Promise<boolean> {
);
await UpdateConfig.apply(snapshot.config);
UpdateConfig.saveFullConfigToLocalStorage(true);
+
+ //funboxes might be different and they wont activate on the account page
+ for (const fb of getActiveFunboxes()) {
+ fb.functions?.applyGlobalCSS?.();
+ }
}
AccountButton.loading(false);
TagController.loadActiveFromLocalStorage();