Skip to content

Commit

Permalink
Fix handling of global launch for Snap'd browsers
Browse files Browse the repository at this point in the history
  • Loading branch information
pimterry committed Aug 30, 2024
1 parent a1f0b0c commit f43b74f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/interceptors/chromium-based-interceptors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ const getChromiumLaunchOptions = async (
// Install HTTP Toolkit's extension, for advanced hook setup. Feature
// flagged for now as it's still new & largely untested.
? [

`--load-extension=${WEBEXTENSION_INSTALL.path}`
]
: []
Expand Down Expand Up @@ -236,8 +235,10 @@ abstract class ExistingChromiumBasedInterceptor implements Interceptor {
return proc.bin && (
// Find a binary that exactly matches the specific command:
proc.bin === browserDetails.command ||
// Or whose binary who's matches the path for this specific variant:
proc.bin.includes(`${browserDetails.name}/${browserDetails.type}`)
// Or who matches the path for this specific variant:
proc.bin.includes(`${browserDetails.name}/${browserDetails.type}`) ||
// Or the snap for this variant:
proc.bin.includes(`/snap/${browserDetails.name}/`)
);
}
});
Expand Down

0 comments on commit f43b74f

Please sign in to comment.