fix: updated theme style store install

This commit is contained in:
SethBurkart123
2024-05-21 19:40:59 +10:00
parent ef5f15d3ea
commit fcfc2d4217
5 changed files with 35 additions and 88 deletions
+1 -1
View File
@@ -67,7 +67,7 @@ export const ThemeCover: React.FC<ThemeCoverProps> = ({
</div>
)}
{ ( !isEditMode ) && !downloaded && !theme.webURL || true ? (
{ ( !isEditMode ) && !downloaded /* && !theme.webURL */ ? (
<>
<div
className="absolute z-20 flex w-8 h-8 p-2 text-white transition-all rounded-full delay-[20ms] opacity-0 top-1 right-2 bg-black/50 place-items-center group-hover:opacity-100 group-hover:top-[1.25rem]"
-12
View File
@@ -2,18 +2,6 @@ import browser from 'webextension-polyfill'
import { CustomTheme, DownloadedTheme, ThemeList } from '../types/CustomThemes';
import localforage from 'localforage';
export const downloadTheme = async (themeName: string, themeURL: string) => {
// send message to the background script
await browser.runtime.sendMessage({
type: 'currentTab',
info: 'DownloadTheme',
body: {
themeName: themeName,
themeURL: themeURL
}
});
}
export const setTheme = async (themeID: string) => {
// send message to the background script
await browser.runtime.sendMessage({