mirror of
https://github.com/wukko/cobalt.git
synced 2025-01-22 10:46:19 +01:00
web/cutout: reset the page state if the worker breaks
This commit is contained in:
parent
f544768784
commit
2812960088
1 changed files with 3 additions and 1 deletions
|
@ -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 a new issue