You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,6 +34,7 @@ render(url, {
34
34
delayLaunch:0, // milliseconds
35
35
delayPageLoad:0, // milliseconds
36
36
chromeFlags: [], // list of flags
37
+
onPageError() {} // callback
37
38
});
38
39
```
39
40
@@ -42,6 +43,7 @@ The second parameter of `render` function can either be an array of chrome flags
42
43
*`delayLaunch` Wait to launch Chrome browser, in case you need more time to set up the server
43
44
*`delayPageLoad` Wait after the page load event for your JS to run
44
45
*`chromeFlags` List of chrome flags
46
+
*`onPageError` Function called when an uncaught exception happens within the page. You can use this function for instance to fail your build if error happens during the generation of the page
0 commit comments