Fixes
CI / Build & Test (push) Successful in 3m0s

This commit is contained in:
Raven Scott
2026-07-26 22:47:40 -04:00
parent 7e3ff42ec1
commit 90b6033382
3 changed files with 29 additions and 8 deletions
+10 -3
View File
@@ -103,9 +103,16 @@ if (process.argv.includes('--extract-addons')) {
process.on('SIGTERM', shutdown);
process.on('SIGINT', shutdown);
// Chrome closes stdin when the port disconnects — exit cleanly.
input.on('end', shutdown);
input.on('close', shutdown);
// Do not exit on stdin 'end'/'close' — Bare can emit those spuriously under
// Chrome's native-messaging pipes (holesail-browser does not either). Chrome
// kills the host when the port disconnects.
process.on('unhandledRejection', (reason) => {
logErr('unhandledRejection: ' + (reason && (reason.stack || reason.message || reason)));
});
process.on('uncaughtException', (err) => {
logErr('uncaughtException: ' + (err && (err.stack || err.message)));
});
logErr('ready');
} catch (err) {