mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-07 12:14:39 +00:00
improve selection logic
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { CustomTheme } from '../../../interface/types/CustomThemes';
|
||||
import browser from 'webextension-polyfill';
|
||||
import sendThemeUpdate from '../../utils/sendThemeUpdate';
|
||||
|
||||
export const removeTheme = async (theme: CustomTheme) => {
|
||||
// Remove custom CSS
|
||||
@@ -19,4 +20,6 @@ export const removeTheme = async (theme: CustomTheme) => {
|
||||
customImageVariables.forEach((variableName) => {
|
||||
document.documentElement.style.removeProperty('--' + variableName);
|
||||
});
|
||||
|
||||
sendThemeUpdate();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user