auto close theme creator on save

This commit is contained in:
SethBurkart123
2024-04-01 21:49:43 +11:00
parent 18603cf4f6
commit c271c10abb
3 changed files with 12 additions and 3 deletions
+4
View File
@@ -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);