automatic theme deduplication on load

This commit is contained in:
SethBurkart123
2024-05-08 13:28:51 +10:00
parent 70f47f64c5
commit 4b46898dbe
4 changed files with 19 additions and 46 deletions
+2 -2
View File
@@ -24,8 +24,8 @@ type ThemesResponse = {
themes: Theme[];
}
const DeleteDownloadedTheme = async (themeID: string) => {
console.log('DeleteDownloaded Theme:', themeID)
export const DeleteDownloadedTheme = async (themeID: string) => {
console.debug('DeleteDownloaded Theme:', themeID)
await localforage.removeItem(themeID);
const availableThemesList = await localforage.getItem('availableThemes') as string[];