web/cutout: reset the page state if the worker breaks
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…
x
Reference in New Issue
Block a user