Skip to content

Commit

Permalink
fix: ad placeholders always visible
Browse files Browse the repository at this point in the history
  • Loading branch information
Miodec committed Feb 9, 2024
1 parent 35dc504 commit 8c8d284
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/ts/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1850,6 +1850,7 @@ export async function apply(
}
);
if (configObj !== undefined && configObj !== null) {
setAds(configObj.ads, true);
setThemeLight(configObj.themeLight, true);
setThemeDark(configObj.themeDark, true);
setThemes(
Expand Down Expand Up @@ -1937,7 +1938,6 @@ export async function apply(
setLazyMode(configObj.lazyMode, true);
setShowAverage(configObj.showAverage, true);
setTapeMode(configObj.tapeMode, true);
setAds(configObj.ads, true);

ConfigEvent.dispatch(
"configApplied",
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/ts/pages/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1247,6 +1247,6 @@ export const page = new Page(
}
);

$(() => {
$(async () => {
Skeleton.save("pageSettings");
});

0 comments on commit 8c8d284

Please sign in to comment.