Skip to content

Commit

Permalink
fix(wappalyzer): it seems when their "page.content()" times out the e…
Browse files Browse the repository at this point in the history
…rror like to our code (increasing the delay for this specific instruction)
  • Loading branch information
sneko committed Mar 17, 2024
1 parent eb28e06 commit 958e04e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion patches/wappalyzer+6.10.66.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
diff --git a/node_modules/wappalyzer/driver.js b/node_modules/wappalyzer/driver.js
index abfbcad..8fdbfe2 100644
index abfbcad..0329564 100644
--- a/node_modules/wappalyzer/driver.js
+++ b/node_modules/wappalyzer/driver.js
@@ -16,7 +16,7 @@ const chromiumArgs = CHROMIUM_ARGS
Expand Down Expand Up @@ -56,6 +56,15 @@ index abfbcad..8fdbfe2 100644
ignoreHTTPSErrors: true,
acceptInsecureCerts: true,
args: chromiumArgs,
@@ -776,7 +807,7 @@ class Site {
}

// HTML
- let html = await this.promiseTimeout(page.content(), '', 'Timeout (html)')
+ let html = await this.promiseTimeout(page.content(), '', 'Timeout (html)', 4 * this.options.maxWait)

if (this.options.htmlMaxCols && this.options.htmlMaxRows) {
const batches = []
@@ -1088,21 +1119,26 @@ class Site {

let page
Expand Down

0 comments on commit 958e04e

Please sign in to comment.