mirror of
https://github.com/imputnet/cobalt.git
synced 2025-06-28 17:38:31 +00:00
web/cutout: reset the page state if the worker breaks
Some checks are pending
Some checks are pending
This commit is contained in:
parent
f544768784
commit
2812960088
@ -46,7 +46,9 @@
|
||||
};
|
||||
|
||||
worker.onerror = (e) => {
|
||||
console.error("bg removal worker exploded:", e)
|
||||
console.error("bg removal worker exploded:", e);
|
||||
|
||||
state = "empty";
|
||||
worker.terminate();
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user