launcher: close browser on uncaughtException

This commit is contained in:
CanadaHonk 2023-01-31 10:06:11 +00:00
parent fba2dbeaa4
commit 0560daf630

View File

@ -197,6 +197,7 @@ export default async (CDP, proc, injectionType = 'browser', { dataPath, browserN
process.on('SIGUSR1', interruptHandler);
process.on('SIGUSR2', interruptHandler);
process.on('SIGTERM', interruptHandler);
process.on('uncaughtException', interruptHandler);
Window.idle = await IdleApi(Window.cdp, { browserType, closeHandlers });