mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 11:44:40 +00:00
remove unnecesarry theme updates
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
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
|
||||
@@ -20,6 +19,4 @@ export const removeTheme = async (theme: CustomTheme) => {
|
||||
customImageVariables.forEach((variableName) => {
|
||||
document.documentElement.style.removeProperty('--' + variableName);
|
||||
});
|
||||
|
||||
sendThemeUpdate();
|
||||
};
|
||||
|
||||
@@ -3,7 +3,6 @@ import localforage from 'localforage';
|
||||
import { CustomTheme } from '../../../interface/types/CustomThemes';
|
||||
import { applyTheme } from './applyTheme';
|
||||
import { removeTheme } from './removeTheme';
|
||||
import sendThemeUpdate from '../../utils/sendThemeUpdate';
|
||||
|
||||
|
||||
export const setTheme = async (themeId: string) => {
|
||||
@@ -39,7 +38,6 @@ export const setTheme = async (themeId: string) => {
|
||||
originalSelectedColor: originalSelectedColor.selectedColor
|
||||
});
|
||||
|
||||
sendThemeUpdate();
|
||||
} catch (error) {
|
||||
console.error('Error setting theme:', error);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user