Add --resource-timeout argument

Sometimes 9000 ms isn't enough
main
Slava 10 years ago
parent f0dfaa5c6a
commit 69eafc4f69

@ -2,6 +2,7 @@
var var
url, url,
originalUrl, originalUrl,
resourceTimeout = 9000,
args = [], args = [],
debug = false; debug = false;
@ -12,6 +13,9 @@
case '--verbose': case '--verbose':
debug = true; debug = true;
break;
case '--resource-timeout':
resourceTimeout = arg;
break; break;
default: default:
url = originalUrl = arg; url = originalUrl = arg;
@ -90,7 +94,7 @@
page.settings.loadImages = false; page.settings.loadImages = false;
page.settings.userAgent = 'Mozilla/5.0 (compatible; Wappalyzer; +https://github.com/AliasIO/Wappalyzer)'; page.settings.userAgent = 'Mozilla/5.0 (compatible; Wappalyzer; +https://github.com/AliasIO/Wappalyzer)';
page.settings.resourceTimeout = 9000; page.settings.resourceTimeout = resourceTimeout;
page.onConsoleMessage = function(message) { page.onConsoleMessage = function(message) {
wappalyzer.log(message); wappalyzer.log(message);

Loading…
Cancel
Save