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,