mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 03:34:40 +00:00
add multi image upload
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { debounce } from 'lodash';
|
||||
import browser from 'webextension-polyfill'
|
||||
interface ThemeList {
|
||||
themes: string[];
|
||||
@@ -53,4 +54,13 @@ export const deleteTheme = async (themeName: string) => {
|
||||
themeName: themeName
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
export const sendThemeUpdate = debounce((updatedTheme: CustomTheme) => {
|
||||
// Send the updated theme to the content script for live preview
|
||||
browser.runtime.sendMessage({
|
||||
type: 'currentTab',
|
||||
info: 'UpdateThemePreview',
|
||||
body: updatedTheme,
|
||||
});
|
||||
}, 100);
|
||||
Reference in New Issue
Block a user