Skip to content

Commit 1c004d6

Browse files
committed
WIP: Fixup for BL types
1 parent 2ecfdac commit 1c004d6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/interceptors/chromium-based-interceptors.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ abstract class FreshChromiumBasedInterceptor implements Interceptor {
139139
await delay(1000); // No hurry, make sure the browser & related processes have all cleaned up
140140

141141
const activeBrowserCount = Object.keys(this.activeBrowsers).length;
142-
const profilePath = snapProfilePath ?? browserDetails?.profile;
142+
const profilePath = snapProfilePath ?? (browserDetails as any).profile;
143143
if (activeBrowserCount === 0 && typeof profilePath === 'string') {
144144
// If we were the last browser and we have a profile path, and it's definitely part of our
145145
// local/snap config (just in case something's gone wrong) -> delete it & reset everything.
@@ -340,8 +340,8 @@ abstract class ExistingChromiumBasedInterceptor implements Interceptor {
340340
if (process.platform === 'win32') {
341341
// Try to cleanly close if we can, rather than killing Chrome directly:
342342
try {
343-
await windowsClose(browser!.pid)
344-
.then(() => waitForExit(browser!.pid));
343+
await windowsClose(browser.pid!)
344+
.then(() => waitForExit(browser.pid!));
345345
return;
346346
} catch (e) {} // If this fails/times out, kill like we do elsewhere:
347347
}

0 commit comments

Comments
 (0)