diff --git a/src/drivers/npm/driver.js b/src/drivers/npm/driver.js index b48781f0f..d5ea1365a 100644 --- a/src/drivers/npm/driver.js +++ b/src/drivers/npm/driver.js @@ -791,7 +791,11 @@ class Site { meta.getAttribute('name') || meta.getAttribute('property') if (key) { - metas[key.toLowerCase()] = [meta.getAttribute('content')] + metas[key.toLowerCase()] = metas[key.toLowerCase()] || [] + + metas[key.toLowerCase()].push( + meta.getAttribute('content') + ) } return metas diff --git a/src/drivers/webextension/js/content.js b/src/drivers/webextension/js/content.js index 586e898a9..085301a6d 100644 --- a/src/drivers/webextension/js/content.js +++ b/src/drivers/webextension/js/content.js @@ -215,8 +215,12 @@ const Content = { (metas, meta) => { const key = meta.getAttribute('name') || meta.getAttribute('property') + console.log(key, meta.getAttribute('content')) + if (key) { - metas[key.toLowerCase()] = [meta.getAttribute('content')] + metas[key.toLowerCase()] = metas[key.toLowerCase()] || [] + + metas[key.toLowerCase()].push(meta.getAttribute('content')) } return metas diff --git a/src/drivers/webextension/js/driver.js b/src/drivers/webextension/js/driver.js index 139a3e088..d0c140346 100644 --- a/src/drivers/webextension/js/driver.js +++ b/src/drivers/webextension/js/driver.js @@ -209,8 +209,6 @@ const Driver = { * Wrapper for analyze */ analyze(...args) { - Driver.log('analyze: Driver.analyze') - return analyze(...args) }, @@ -406,8 +404,6 @@ const Driver = { ) }) - Driver.log('analyze: onWebRequestComplete | headers') - Driver.onDetect(request.url, analyze({ headers })).catch(Driver.error) } } catch (error) { @@ -434,8 +430,6 @@ const Driver = { const scripts = await response.text() - console.log('analyze: onScriptRequestComplete | scripts') - Driver.onDetect(request.documentUrl, analyze({ scripts })).catch( Driver.error ) @@ -476,8 +470,6 @@ const Driver = { xhrAnalyzed = {} } - console.log('analyze: onXhrRequestComplete | xhr', hostname) - Driver.onDetect( request.originUrl || request.initiator, analyze({ xhr: hostname }) @@ -508,8 +500,6 @@ const Driver = { const technologies = getRequiredTechnologies(requires, categoryRequires) - Driver.log('analyze: onContentLoad | url, ...item') - await Driver.onDetect( url, analyze({ url, ...items }, technologies),