mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 03:34:40 +00:00
auto close theme creator on save
This commit is contained in:
@@ -86,6 +86,10 @@ export const sendThemeUpdate = debounce((updatedTheme: CustomTheme, saveTheme?:
|
||||
body: updatedThemeCopy,
|
||||
save: saveTheme,
|
||||
});
|
||||
|
||||
if (saveTheme) {
|
||||
browser.runtime.sendMessage({ type: 'currentTab', info: 'CloseThemeCreator' })
|
||||
}
|
||||
})
|
||||
.catch((error) => {
|
||||
console.error('Error converting image blobs to base64:', error);
|
||||
|
||||
@@ -78,8 +78,8 @@ function ThemeCreator({ themeID }: { themeID?: string }) {
|
||||
}));
|
||||
}
|
||||
|
||||
const saveTheme = () => {
|
||||
sendThemeUpdate(theme, true);
|
||||
const saveTheme = async () => {
|
||||
sendThemeUpdate(theme, true)
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
Reference in New Issue
Block a user