Skip to content

Commit

Permalink
Merge pull request #85 from danielwestendorf/add-support-for-specifyi…
Browse files Browse the repository at this point in the history
…ng-starting-url

Add support for specifying the starting URL
  • Loading branch information
danielwestendorf committed Jan 14, 2020
2 parents a199ba9 + 5add888 commit f0f5131
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions index.js
Expand Up @@ -9,8 +9,9 @@ const webServer = new Server({
console.log('Starting Google Chrome')

ChromeLauncher.launch({
chromeFlags: ['--headless', '--disable-gpu', '--disable-dev-shm-usage', '--no-sandbox', '--hide-scrollbars'],
port: 9222
chromeFlags: ['--disable-gpu', '--disable-dev-shm-usage', '--no-sandbox', '--hide-scrollbars'],
port: 9222,
startingUrl: (process.env.STARTING_URL || 'about:blank')
}).then((chrome) => {
console.log(`Chrome debugging port running on ${chrome.port}`)

Expand Down

0 comments on commit f0f5131

Please sign in to comment.