Define global variables

main
Elbert Alias 7 years ago
parent 6f0ec0007b
commit 8c5aaac4f9

@ -16,10 +16,8 @@ wappalyzer.analyze(url)
.then(json => {
process.stdout.write(JSON.stringify(json) + '\n')
process.exit(0);
process.exit();
})
.catch(error => {
process.stderr.write(error + '\n')
process.exit(1);
throw error
});

@ -2,7 +2,7 @@
"name": "wappalyzer",
"description": "Uncovers the technologies used on websites",
"homepage": "https://github.com/AliasIO/Wappalyzer",
"version": "5.0.1",
"version": "5.0.2",
"author": "Elbert Alias",
"license": "GPL-3.0",
"repository": {

@ -1,7 +1,9 @@
/**
* WebExtension driver
*/
setOption('robotsTxtCache', {});
/** global: browser */
/** global: wappalyzer */
var tabCache = {};
var headersCache = {};

@ -1,3 +1,6 @@
/** global: browser */
/** global: wappalyzer */
function getOption(name, defaultValue, callback) {
browser.storage.local.get(name)
.then(item => {

@ -51,8 +51,7 @@ function replaceDom(domTemplate) {
function appsToDomTemplate(response) {
var
appName, confidence, version,
categories = [],
appName, confidence, version, categories,
template = [];
if ( response.tabCache && Object.keys(response.tabCache.detected).length > 0 ) {

Loading…
Cancel
Save