feat(headless): update launcher flags

Signed-off-by: Dwi Siswanto <git@dw1.io>
This commit is contained in:
Dwi Siswanto 2024-11-03 09:17:20 +07:00
parent 1019952294
commit 9fef94adc5
No known key found for this signature in database
GPG Key ID: 3BB198907EF44CED

View File

@ -51,15 +51,15 @@ func New(options *types.Options) (*Browser, error) {
chromeLauncher = chromeLauncher. chromeLauncher = chromeLauncher.
Leakless(false). Leakless(false).
Set("disable-gpu", "true"). Set("disable-crash-reporter").
Set("ignore-certificate-errors", "true"). Set("disable-gpu").
Set("ignore-certificate-errors", "1"). Set("disable-notifications").
Set("disable-crash-reporter", "true"). Set("hide-scrollbars").
Set("disable-notifications", "true"). Set("ignore-certificate-errors").
Set("hide-scrollbars", "true"). Set("ignore-ssl-errors").
Set("incognito").
Set("mute-audio").
Set("window-size", fmt.Sprintf("%d,%d", 1080, 1920)). Set("window-size", fmt.Sprintf("%d,%d", 1080, 1920)).
Set("mute-audio", "true").
Set("incognito", "true").
Delete("use-mock-keychain"). Delete("use-mock-keychain").
UserDataDir(dataStore) UserDataDir(dataStore)