schoolbox web extension :)
0
fork

Configure Feed

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

fix: remove unused ignores and error handling

willow 687950a4 9af5fec4

+3 -8
-1
src/entrypoints/background.ts
··· 60 60 } else if (message.toTab) { 61 61 const tabs = await browser.tabs.query({ url: message.toTab }); 62 62 if (tabs.length > 0) { 63 - // @ts-expect-error - tab will exist 64 63 browser.tabs.update(tabs[0].id, { active: true }); 65 64 } else if (sender.tab?.id) { 66 65 browser.tabs.update(sender.tab.id, { url: message.toTab });
-1
src/entrypoints/popup/components/Modal.svelte
··· 16 16 if (e.target === dialog) dialog.close(); 17 17 }} 18 18 class="bg-ctp-base text-ctp-text open:animate-zoom-in relative m-auto rounded-lg backdrop:backdrop-blur-md"> 19 - <!-- svelte-ignore a11y_autofocus --> 20 19 <button autofocus onclick={() => dialog?.close()} class="small bg-ctp-surface1 absolute right-0 top-0 m-2" 21 20 ><X /></button> 22 21
+1 -1
src/entrypoints/popup/routes/Snippets.svelte
··· 1 1 <script lang="ts"> 2 - import type { SnippetId, UserSnippet } from "@/utils/storage"; 2 + import type { UserSnippet } from "@/utils/storage"; 3 3 import { globalSettings, snippets } from "@/utils/storage"; 4 4 5 5 import Title from "../components/Title.svelte";
+2 -5
src/utils/periodUtils.ts
··· 1 1 // these utility functions are intended to be used on the dashboard, as that is where the timetable is displayed 2 2 3 - import { logger } from "./logger"; 4 - 5 3 interface PeriodHeader { 6 4 name: string; 7 5 time: { ··· 138 136 return date; 139 137 }); 140 138 return { start, end }; 141 - } catch (error) { 142 - logger.error("Error extracting times:", error); 143 - throw new Error("Failed to extract times"); 139 + } catch (e) { 140 + throw new Error("Failed to extract times", e as Error); 144 141 } 145 142 }