Skip to content

Commit f43b74f

Browse files
committed
Fix handling of global launch for Snap'd browsers
1 parent a1f0b0c commit f43b74f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/interceptors/chromium-based-interceptors.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ const getChromiumLaunchOptions = async (
6262
// Install HTTP Toolkit's extension, for advanced hook setup. Feature
6363
// flagged for now as it's still new & largely untested.
6464
? [
65-
6665
`--load-extension=${WEBEXTENSION_INSTALL.path}`
6766
]
6867
: []
@@ -236,8 +235,10 @@ abstract class ExistingChromiumBasedInterceptor implements Interceptor {
236235
return proc.bin && (
237236
// Find a binary that exactly matches the specific command:
238237
proc.bin === browserDetails.command ||
239-
// Or whose binary who's matches the path for this specific variant:
240-
proc.bin.includes(`${browserDetails.name}/${browserDetails.type}`)
238+
// Or who matches the path for this specific variant:
239+
proc.bin.includes(`${browserDetails.name}/${browserDetails.type}`) ||
240+
// Or the snap for this variant:
241+
proc.bin.includes(`/snap/${browserDetails.name}/`)
241242
);
242243
}
243244
});

0 commit comments

Comments
 (0)