Skip to content

Commit a670438

Browse files
committed
fix: css funboxes not being applied when logging in
1 parent f0a7b82 commit a670438

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

frontend/src/ts/controllers/account-controller.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ import { navigate } from "./route-controller";
4848
import { FirebaseError } from "firebase/app";
4949
import * as PSA from "../elements/psa";
5050
import defaultResultFilters from "../constants/default-result-filters";
51+
import { getActiveFunboxes } from "../test/funbox/list";
5152

5253
export const gmailProvider = new GoogleAuthProvider();
5354
export const githubProvider = new GithubAuthProvider();
@@ -171,6 +172,11 @@ async function getDataAndInit(): Promise<boolean> {
171172
);
172173
await UpdateConfig.apply(snapshot.config);
173174
UpdateConfig.saveFullConfigToLocalStorage(true);
175+
176+
//funboxes might be different and they wont activate on the account page
177+
for (const fb of getActiveFunboxes()) {
178+
fb.functions?.applyGlobalCSS?.();
179+
}
174180
}
175181
AccountButton.loading(false);
176182
TagController.loadActiveFromLocalStorage();

0 commit comments

Comments
 (0)