From 7bb4d66705f6529f3d4444cbc99f9acad9bdab01 Mon Sep 17 00:00:00 2001 From: Elbert Alias <77259+AliasIO@users.noreply.github.com> Date: Wed, 30 Sep 2020 08:30:08 +1000 Subject: [PATCH] Relaunch browser automatically --- src/drivers/npm/driver.js | 8 ++++++-- src/drivers/npm/package.json | 2 +- src/package.json | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/drivers/npm/driver.js b/src/drivers/npm/driver.js index a257a8add..b62ebed6a 100644 --- a/src/drivers/npm/driver.js +++ b/src/drivers/npm/driver.js @@ -173,7 +173,11 @@ class Driver { class Site { constructor(url, headers = {}, driver) { - ;({ options: this.options, browser: this.browser } = driver) + ;({ + options: this.options, + browser: this.browser, + init: this.initDriver, + } = driver) this.options.headers = { ...this.options.headers, @@ -263,7 +267,7 @@ class Site { } if (!this.browser) { - await this.init() + await this.initDriver() if (!this.browser) { throw new Error('Browser closed') diff --git a/src/drivers/npm/package.json b/src/drivers/npm/package.json index d221784b9..1f4bf3485 100644 --- a/src/drivers/npm/package.json +++ b/src/drivers/npm/package.json @@ -13,7 +13,7 @@ "software" ], "homepage": "https://www.wappalyzer.com/", - "version": "6.3.7", + "version": "6.3.8", "author": "Wappalyzer", "license": "MIT", "repository": { diff --git a/src/package.json b/src/package.json index 2cc69710f..b105360bd 100644 --- a/src/package.json +++ b/src/package.json @@ -13,7 +13,7 @@ "software" ], "homepage": "https://www.wappalyzer.com/", - "version": "6.3.7", + "version": "6.3.8", "author": "Wappalyzer", "license": "MIT", "repository": {