From 21e0bd252771c15b324e508bc21f4591ffbc7bf8 Mon Sep 17 00:00:00 2001 From: Elbert Alias <77259+AliasIO@users.noreply.github.com> Date: Wed, 8 Dec 2021 11:11:18 +1100 Subject: [PATCH] Fix ENV check --- src/drivers/webextension/js/content.js | 2 -- src/wappalyzer.js | 3 ++- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/drivers/webextension/js/content.js b/src/drivers/webextension/js/content.js index 085301a6d..6df3104fa 100644 --- a/src/drivers/webextension/js/content.js +++ b/src/drivers/webextension/js/content.js @@ -215,8 +215,6 @@ const Content = { (metas, meta) => { const key = meta.getAttribute('name') || meta.getAttribute('property') - console.log(key, meta.getAttribute('content')) - if (key) { metas[key.toLowerCase()] = metas[key.toLowerCase()] || [] diff --git a/src/wappalyzer.js b/src/wappalyzer.js index 6bdc47321..6f1f861c2 100644 --- a/src/wappalyzer.js +++ b/src/wappalyzer.js @@ -4,7 +4,8 @@ function toArray(value) { return Array.isArray(value) ? value : [value] } -const benchmarkEnabled = !!process.env.WAPPALYZER_BENCHMARK +const benchmarkEnabled = + typeof process !== 'undefined' ? !!process.env.WAPPALYZER_BENCHMARK : false let benchmarks = []