mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 03:34:40 +00:00
fixed bug when enabling a theme, reloading breaks colors
This commit is contained in:
@@ -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 () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user