schoolbox web extension :)
0
fork

Configure Feed

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

undo migration workarounds

* https://github.com/wxt-dev/wxt/pull/1996

willow 59b6895b d8100848

+1 -7
+1 -7
src/utils/storage/global.ts
··· 3 3 import type * as Types from "./types"; 4 4 import type { Settings as LogoSettings } from "@/entrypoints/plugins/changeLogo"; 5 5 6 - function isSettingsV1(settings: Types.SettingsV1 | Types.SettingsV2): settings is Types.SettingsV1 { 7 - return (settings as Types.SettingsV1).themeLogoAsFavicon !== undefined; 8 - } 9 - 10 6 export const globalSettings = new StorageState( 11 7 storage.defineItem<Types.SettingsV2>("local:globalSettings", { 12 8 version: 2, ··· 22 18 userSnippets: {}, 23 19 }, 24 20 migrations: { 25 - 2: async (settings: Types.SettingsV1 | Types.SettingsV2 | undefined) => { 26 - if (!settings || !isSettingsV1(settings)) return; 27 - 21 + 2: async (settings: Types.SettingsV1) => { 28 22 const { themeLogo, themeLogoAsFavicon, ...rest } = settings; 29 23 30 24 // dynamic import to avoid TDZ error