Port env to js

main
Elbert Alias 7 years ago
parent 996c72d0fa
commit 4177bfbfaf

@ -6,7 +6,7 @@ set -eu
echo "Validating apps.json..." echo "Validating apps.json..."
jsonlint-cli -s schema.json src/apps.json jsonlint-cli -tps schema.json src/apps.json > /tmp/apps.json && mv /tmp/apps.json src/apps.json
echo "Validating regular expressions..." echo "Validating regular expressions..."

@ -35,9 +35,9 @@
}, },
"required": true "required": true
}, },
"env": { "js": {
"type": [ "string", "array" ], "type": "object",
"items": { "additionalProperties": {
"type": "string" "type": "string"
} }
}, },

File diff suppressed because it is too large Load Diff

@ -127,8 +127,6 @@ class Driver {
const scripts = this.getScripts(browser); const scripts = this.getScripts(browser);
const js = this.getJs(browser); const js = this.getJs(browser);
console.log(js);
this.wappalyzer.analyze(pageUrl.hostname, pageUrl.href, { this.wappalyzer.analyze(pageUrl.hostname, pageUrl.href, {
headers, headers,
html, html,