-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a4acdc6
commit 5c58dfc
Showing
5 changed files
with
63 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
//Imports | ||
import { Logger } from "@utils/log.ts" | ||
import * as astral from "x/[email protected]/mod.ts" | ||
import { env } from "@utils/io.ts" | ||
|
||
const flags = [ | ||
//"--no-sandbox", | ||
|
@@ -57,7 +58,7 @@ export class Browser { | |
//TODO(@lowlighter): this.instance = await puppeteer.connect({ browserWSEndpoint: this.endpoint }) | ||
log.io("connected to browser") | ||
} else { | ||
instance = await astral.launch({ headless: true, args: flags }) | ||
instance = await astral.launch({ headless: true, args: flags, path: env.get("CHROME_BIN") || undefined }) | ||
log.io("started browser") | ||
} | ||
if ((this.shared) && (!this.instance)) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters