mirror of
https://github.com/imputnet/cobalt.git
synced 2025-06-29 01:48:28 +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) => {
|
worker.onerror = (e) => {
|
||||||
console.error("bg removal worker exploded:", e)
|
console.error("bg removal worker exploded:", e);
|
||||||
|
|
||||||
|
state = "empty";
|
||||||
worker.terminate();
|
worker.terminate();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user