mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-05 19:24:39 +00:00
await theme swapping to prevent removetheme and applytheme from overriding each other
This commit is contained in:
@@ -18,7 +18,7 @@ export const setTheme = async (themeId: string) => {
|
||||
if (enabledTheme.selectedTheme) {
|
||||
const currentTheme = await localforage.getItem(enabledTheme.selectedTheme) as CustomTheme;
|
||||
if (currentTheme) {
|
||||
removeTheme(currentTheme);
|
||||
await removeTheme(currentTheme);
|
||||
}
|
||||
const color = await browser.storage.local.get('originalSelectedColor') as { originalSelectedColor: string; };
|
||||
originalSelectedColor = { selectedColor: color.originalSelectedColor };
|
||||
|
||||
Reference in New Issue
Block a user