launcher: run Window.close on process close too

This commit is contained in:
CanadaHonk 2023-01-05 20:39:58 +00:00
parent 36b578ce63
commit 99e4ee860d

View File

@ -94,6 +94,8 @@ export default async (CDP, proc, injectionType = 'browser', { browserName } = {
versions
};
proc.on('close', Window.close);
Window.idle = await IdleApi(Window.cdp, { browserEngine, closeHandlers });
Window.controls = await ControlsApi(Window.cdp);