mirror of
https://github.com/wukko/cobalt.git
synced 2025-05-29 13:00:12 +02:00
web/removebg: fix the incorrect file condition
This commit is contained in:
parent
b85771dc1d
commit
8a5b25b4ce
@ -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…
x
Reference in New Issue
Block a user