From fb21eaeca1ccfd066f814efe94709c620481b700 Mon Sep 17 00:00:00 2001 From: SethBurkart123 Date: Thu, 2 Nov 2023 17:53:03 +1100 Subject: [PATCH] removed unused code --- src/seqta/ui/Themes.js | 29 +---------------------------- 1 file changed, 1 insertion(+), 28 deletions(-) diff --git a/src/seqta/ui/Themes.js b/src/seqta/ui/Themes.js index c97d6ecf..8d1cbbf1 100644 --- a/src/seqta/ui/Themes.js +++ b/src/seqta/ui/Themes.js @@ -100,31 +100,4 @@ export const enableCurrentTheme = async () => { } else { console.log("No current theme set in localStorage."); } -}; - -// 🚀 Main function to orchestrate everything 🚀 -/* export const EnableThemes = async () => { - const availableThemes = [ - { name: "dark", url: "https://raw.githubusercontent.com/SethBurkart123/BetterSEQTA-Themes/main/themes/test.json" } - ]; - - // Save available themes - localStorage.setItem("availableThemes", JSON.stringify(availableThemes)); - - // Determine theme to apply - const themeToApply = availableThemes[0].name; - - // Fetch, save, and apply theme if not already in IndexedDB - if (!(await themeExistsInDB(themeToApply))) { - console.log(`Theme ${themeToApply} not found in IndexedDB, fetching...`); - const themeData = await fetchThemeJSON(availableThemes[0].url); - await saveToIndexedDB(themeData, themeToApply); - console.log(`Theme ${themeToApply} saved to IndexedDB`, themeData); - } - - // Set and apply the selected theme - localStorage.setItem("selectedTheme", themeToApply); - await applyTheme(themeToApply).catch((error) => { - console.error(`Failed to apply theme: ${error}`); - }); -}; */ \ No newline at end of file +}; \ No newline at end of file