schoolbox web extension :)
0
fork

Configure Feed

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

refactor: remove unused reload function

willow da7713e6 e2090461

+1 -13
+1 -13
src/entrypoints/popup/App.svelte
··· 1 1 <script lang="ts"> 2 2 import { flavors } from "@catppuccin/palette"; 3 - import { globalSettings, schoolboxUrls, updated } from "@/utils/storage"; 4 - import { logger } from "@/utils/logger"; 3 + import { globalSettings, updated } from "@/utils/storage"; 5 4 import { browser, onMount } from "#imports"; 6 5 7 6 import Router from "svelte-spa-router"; ··· 17 16 "/themes": Themes, 18 17 "/snippets": Snippets, 19 18 }; 20 - 21 - async function refreshSchoolboxURLs() { 22 - logger.info("[App.svelte] Refreshing all Schoolbox URLs"); 23 - const urls = (await schoolboxUrls.storage.getValue()).urls.map((url) => url.replace(/^https:\/\//, "*://") + "/*"); 24 - const tabs = await browser.tabs.query({ url: urls }); 25 - tabs.forEach((tab) => { 26 - if (tab.id) { 27 - browser.tabs.reload(tab.id); 28 - } 29 - }); 30 - } 31 19 32 20 function getAccentRgb(accent: string, flavour: string) { 33 21 // eslint-disable-next-line @typescript-eslint/no-explicit-any