web/cutout: reset the page state if the worker breaks
Some checks are pending
CodeQL / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Waiting to run
Run tests / check lockfile correctness (push) Waiting to run
Run tests / web sanity check (push) Waiting to run
Run tests / api sanity check (push) Waiting to run

This commit is contained in:
wukko 2025-01-16 13:46:52 +06:00
parent f544768784
commit 2812960088
No known key found for this signature in database
GPG Key ID: 3E30B3F26C7B4AA2

View File

@ -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();
}
};