mirror of
https://github.com/wukko/cobalt.git
synced 2025-01-22 10:46:19 +01:00
web/removebg: fix the incorrect file condition
This commit is contained in:
parent
b85771dc1d
commit
8a5b25b4ce
1 changed files with 1 additions and 1 deletions
|
@ -63,7 +63,7 @@ const removeImageBackground = async (file: File) => {
|
|||
}
|
||||
|
||||
self.onmessage = async (event: MessageEvent) => {
|
||||
if (event.data.cobaltRemoveBgWorker.file) {
|
||||
if (event.data.cobaltRemoveBgWorker) {
|
||||
await removeImageBackground(event.data.cobaltRemoveBgWorker.file);
|
||||
self.close();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue