add multi image upload

This commit is contained in:
SethBurkart123
2024-03-31 20:50:52 +11:00
parent 8d55b878da
commit 93e97d3c21
6 changed files with 153 additions and 16 deletions
+11 -1
View File
@@ -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);