From a670438bb98931ed7f62780293f8eb5dddfddd07 Mon Sep 17 00:00:00 2001 From: Miodec Date: Sun, 22 Dec 2024 00:28:16 +0100 Subject: fix: css funboxes not being applied when logging in --- frontend/src/ts/controllers/account-controller.ts | 6 ++++++ 1 file changed, 6 insertions(+) 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 { ); 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(); -- cgit v1.2.3