From bfeadced813268a8364e27809ef5979ae8f138a4 Mon Sep 17 00:00:00 2001 From: Pouya Oftadeh Date: Wed, 20 Nov 2019 16:51:06 -0500 Subject: [PATCH] chore: add comment for 401 error check --- src/Browser/Browser.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Browser/Browser.ts b/src/Browser/Browser.ts index 2a2a5ccc..99f48348 100644 --- a/src/Browser/Browser.ts +++ b/src/Browser/Browser.ts @@ -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,