diff --git a/materialious/package-lock.json b/materialious/package-lock.json index 80fe0902..9e2d9845 100644 --- a/materialious/package-lock.json +++ b/materialious/package-lock.json @@ -19,6 +19,7 @@ "@capacitor/preferences": "^7.0.2", "@capacitor/screen-orientation": "^7.0.0", "@capacitor/share": "^7.0.2", + "@macfja/serializer": "^1.1.4", "@macfja/svelte-persistent-store": "^2.4.2", "beercss": "^3.12.13", "bgutils-js": "^3.2.0", diff --git a/materialious/package.json b/materialious/package.json index b4e2a929..52180ade 100644 --- a/materialious/package.json +++ b/materialious/package.json @@ -51,6 +51,7 @@ "@capacitor/preferences": "^7.0.2", "@capacitor/screen-orientation": "^7.0.0", "@capacitor/share": "^7.0.2", + "@macfja/serializer": "^1.1.4", "@macfja/svelte-persistent-store": "^2.4.2", "beercss": "^3.12.13", "bgutils-js": "^3.2.0", diff --git a/materialious/src/lib/components/settings/SponsorBlock.svelte b/materialious/src/lib/components/settings/SponsorBlock.svelte index fdd2cac2..c8328331 100644 --- a/materialious/src/lib/components/settings/SponsorBlock.svelte +++ b/materialious/src/lib/components/settings/SponsorBlock.svelte @@ -12,7 +12,9 @@ } from '../../store'; let sponsorCategoriesList: string[] = $state([]); - sponsorBlockCategoriesStore.subscribe((value) => (sponsorCategoriesList = value)); + sponsorBlockCategoriesStore.subscribe((value) => { + sponsorCategoriesList = value; + }); let sponsorBlockInstance = $state(get(sponsorBlockUrlStore)); @@ -105,7 +107,7 @@

{$_('layout.sponsors.Catagories')}

-{#each sponsorCategories as sponsor} +{#each sponsorCategories as sponsor (sponsor)}