add store downloading

This commit is contained in:
SethBurkart123
2024-05-07 12:03:38 +10:00
parent 3db51fb6d5
commit 2408fb1028
4 changed files with 79 additions and 9 deletions
+5 -1
View File
@@ -2,7 +2,7 @@ import * as Sentry from "@sentry/browser";
import browser from 'webextension-polyfill'
import { onError } from './seqta/utils/onError';
import { SettingsState } from "./types/storage";
import DownloadTheme from "./seqta/ui/themes/downloadTheme";
import DownloadTheme, { StoreDownloadTheme } from "./seqta/ui/themes/downloadTheme";
import localforage from "localforage";
browser.storage.local.get([ "telemetry" ]).then((telemetry) => {
@@ -166,6 +166,10 @@ browser.runtime.onMessage.addListener((request: any, _sender: any, sendResponse:
case 'DownloadTheme':
DownloadTheme(request.body.theme);
break;
case 'StoreDownloadTheme':
StoreDownloadTheme(request.body);
break;
case 'DeleteDownloadedTheme':
DeleteDownloadedTheme(request.body);