fixed bug when enabling a theme, reloading breaks colors

This commit is contained in:
SethBurkart123
2023-11-22 09:35:06 +11:00
parent 554e890e12
commit 6dd75462b3
+2 -3
View File
@@ -1,5 +1,5 @@
/* global chrome */
import localforage from 'localforage'; import localforage from 'localforage';
import { updateAllColors } from '../ui/colors/Manager.js';
let currentThemeClass = ''; let currentThemeClass = '';
@@ -77,8 +77,7 @@ const applyTheme = async (themeName) => {
); );
} }
// Update colors based on theme settings chrome.storage.local.set({ DarkMode: darkMode, selectedColor: defaultColour });
updateAllColors(darkMode, defaultColour);
}; };
export const listThemes = async () => { export const listThemes = async () => {