Skip to content

Commit

Permalink
Fix timeout (GoogleChrome#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelli authored Oct 18, 2017
1 parent 4833903 commit bc34450
Show file tree
Hide file tree
Showing 3 changed files with 252 additions and 255 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"dependencies": {
"@google-cloud/datastore": "^1.0.6",
"@webcomponents/webcomponentsjs": "^1.0.3",
"chrome-launcher": "^0.3.1",
"chrome-launcher": "^0.8.0",
"chrome-remote-interface": "^0.24.1",
"compression": "^1.7.0",
"express": "^4.15.2",
Expand Down
6 changes: 3 additions & 3 deletions src/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,10 @@ class Renderer {

// Set a virtual time budget of 5 seconds for script/rendering. Once the page is
// idle, the virtual time budget expires immediately.
if (networkIdle && pageLoadEventFired)
if (networkIdle && pageLoadEventFired) {
Emulation.setVirtualTimePolicy({policy: 'advance', budget: 5000});

timeBudgetStarted = true;
timeBudgetStarted = true;
}
};

let pageReady = async() => {
Expand Down
Loading

0 comments on commit bc34450

Please sign in to comment.