Skip to content

Commit

Permalink
Add start maximised option to browser
Browse files Browse the repository at this point in the history
  • Loading branch information
aurora-dot committed Jun 5, 2024
1 parent 2a537f6 commit 12f4943
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scraper/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ func setupBrowser() (*rod.Page, *rod.HijackRouter) {
Set("--disable-dev-shm-usage").
Set("--disable-gpu").
Set("--no-zygote").
Set("--single-process")
Set("--single-process").
Set("--start-maximized")

wsURL := browserArgs.Bin(CHROME_PATH).MustLaunch()
browser := rod.New().ControlURL(wsURL).MustConnect()
Expand Down

0 comments on commit 12f4943

Please sign in to comment.