Created
March 4, 2023 19:22
-
-
Save geoffharcourt/b95e0366741c9e8aee4a4839ff9ae0bd to your computer and use it in GitHub Desktop.
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
base_options = { | |
browser_options: { | |
"no-sandbox" => nil, | |
}, | |
js_errors: true, | |
logger: BrowserLogger.new, | |
process_timeout: 10, | |
timeout: 10, | |
url: REMOTE_CHROME_URL, | |
url_whitelist: [ | |
`hostname`.strip&.downcase, | |
"localhost", | |
"127.0.0.1", | |
"assets.commonlit.org", | |
"cdn.commonlit.org", | |
"forms.hsforms.com", | |
"https://cdn.jsdelivr.net", | |
"https://cdn.skypack.dev", | |
"https://www.gstatic.com", | |
"js.hsforms.net", | |
].select(&:present?), | |
window_size: default_window_size, | |
}.compact |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment