Fix ENV check

main
Elbert Alias 3 years ago
parent 7eff38c8a8
commit 21e0bd2527

@ -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()] || []

@ -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 = []