mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 11:44:40 +00:00
fix: theme auto enabling attempting to reach unitialized variables
This commit is contained in:
@@ -5,6 +5,7 @@ import { settingsState } from '../../utils/listeners/SettingsState';
|
||||
|
||||
|
||||
export const enableCurrentTheme = async () => {
|
||||
console.log('enableCurrentTheme', settingsState.selectedTheme, await localforage.getItem(settingsState.selectedTheme));
|
||||
if (settingsState.selectedTheme) {
|
||||
const theme = await localforage.getItem(settingsState.selectedTheme) as CustomTheme;
|
||||
if (theme) {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import browser from 'webextension-polyfill';
|
||||
import localforage from 'localforage';
|
||||
import { CustomTheme } from '../../../interface/types/CustomThemes';
|
||||
import { applyTheme } from './applyTheme';
|
||||
|
||||
Reference in New Issue
Block a user