schoolbox web extension :)
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(popup): themes picker not working on FF

willow ab507a53 c0134498

+4 -4
+4 -4
src/entrypoints/popup/routes/Themes.svelte
··· 33 33 34 34 async function flavourClicked(flavour: string) { 35 35 settings.themeFlavour = flavour; 36 - await globalSettings.setValue(settings); 36 + await globalSettings.setValue($state.snapshot(settings)); 37 37 } 38 38 39 39 function cleanAccent(accent: string) { ··· 42 42 43 43 async function accentClicked(accent: string) { 44 44 settings.themeAccent = cleanAccent(accent); 45 - await globalSettings.setValue(settings); 45 + await globalSettings.setValue($state.snapshot(settings)); 46 46 } 47 47 48 48 async function logoClicked(logoId: string) { 49 49 settings.themeLogo = logoId as LogoId; 50 - await globalSettings.setValue(settings); 50 + await globalSettings.setValue($state.snapshot(settings)); 51 51 } 52 52 53 53 async function handleToggleChange(event: CustomEvent) { 54 54 let settings = await globalSettings.getValue(); 55 55 settings.themes = event.detail.checked; 56 - await globalSettings.setValue(settings); 56 + await globalSettings.setValue($state.snapshot(settings)); 57 57 } 58 58 </script> 59 59