diff --git a/frontend/src/ts/config.ts b/frontend/src/ts/config.ts index 01f7219c1223..071722772d11 100644 --- a/frontend/src/ts/config.ts +++ b/frontend/src/ts/config.ts @@ -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( @@ -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", diff --git a/frontend/src/ts/pages/settings.ts b/frontend/src/ts/pages/settings.ts index fbb5ad1a1a9a..43d5bf21e31c 100644 --- a/frontend/src/ts/pages/settings.ts +++ b/frontend/src/ts/pages/settings.ts @@ -1247,6 +1247,6 @@ export const page = new Page( } ); -$(() => { +$(async () => { Skeleton.save("pageSettings"); });