Skip to content

Commit

Permalink
add env to control chrome binary
Browse files Browse the repository at this point in the history
  • Loading branch information
BennyThink committed Feb 23, 2024
1 parent a392a49 commit 7749400
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
~~# archiver
# archiver

[![codecov](https://codecov.io/gh/tgbot-collection/archiver/branch/master/graph/badge.svg?token=ELEIXK6QAR)](https://codecov.io/gh/tgbot-collection/archiver)
[![docker image builder](https://github.com/tgbot-collection/archiver/actions/workflows/builder.yaml/badge.svg)](https://github.com/tgbot-collection/archiver/actions/workflows/builder.yaml)
Expand Down Expand Up @@ -38,6 +38,7 @@ The AI functionality is powered by [Gemini](https://ai.google.dev/).
start - start Wayback Machine bot
about - about this bot
ping - ping server
stop - stop AI mode
```

# Features
Expand Down
2 changes: 1 addition & 1 deletion screenshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func takeScreenshot(url string) string {

caps := selenium.Capabilities{"browserName": "Chrome"}
chromeCaps := chrome.Capabilities{
Path: "",
Path: os.Getenv("CHROME_BINARY"),
Args: []string{
"--headless",
"--no-sandbox",
Expand Down

0 comments on commit 7749400

Please sign in to comment.