Skip to content

Commit

Permalink
chore: add comment for 401 error check
Browse files Browse the repository at this point in the history
  • Loading branch information
poftadeh committed Nov 20, 2019
1 parent 209c9fe commit bfeadce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Browser/Browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ class Browser {
* handles errors thrown by the navigation function
*/
private handleNavigationError(error, config) {
// the jsdom instance will otherwise crash on a 401
if (error.statusCode === 401) {
this.dom = new JSDOM(' ', {
resources: config.resourceLoader,
Expand Down

0 comments on commit bfeadce

Please sign in to comment.