Fix Scruntinizer issues

main
Elbert Alias 8 years ago
parent 2492bbf8d0
commit cba85bcee8

@ -22,7 +22,7 @@
require('fs').changeWorkingDirectory(scriptDir); require('fs').changeWorkingDirectory(scriptDir);
require('system').args.forEach(function(arg, i) { require('system').args.forEach(function(arg) {
var var
value, value,
arr = /^(--[^=]+)=(.+)$/.exec(arg); arr = /^(--[^=]+)=(.+)$/.exec(arg);

@ -148,9 +148,11 @@
} }
for ( var header in responseHeaders ) { for ( var header in responseHeaders ) {
if ( responseHeaders.hasOwnProperty(header) ) {
headersCache[uri][header] = responseHeaders[header]; headersCache[uri][header] = responseHeaders[header];
} }
} }
}
w.log(JSON.stringify({ uri: uri, headers: responseHeaders })); w.log(JSON.stringify({ uri: uri, headers: responseHeaders }));
} }
@ -209,6 +211,7 @@
}; };
break; break;
default:
} }
sendResponse(response); sendResponse(response);
@ -313,7 +316,7 @@
xhr.setRequestHeader('Content-type', 'application/x-www-form-urlencoded'); xhr.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');
xhr.onreadystatechange = function(e) { xhr.onreadystatechange = function() {
if ( xhr.readyState == 4 ) { if ( xhr.readyState == 4 ) {
w.log('w.driver.post: status ' + xhr.status + ' (' + url + ')'); w.log('w.driver.post: status ' + xhr.status + ' (' + url + ')');
} }

@ -2,12 +2,12 @@
document.addEventListener('DOMContentLoaded', function() { document.addEventListener('DOMContentLoaded', function() {
var var
i, value, attr, i, value,
nodes = document.getElementsByTagName('*'); nodes = document.querySelector('*');
for ( i = 0; i < nodes.length; i ++ ) { for ( i = 0; i < nodes.length; i ++ ) {
if ( attr = nodes[i].dataset.i18n ) { if ( value = nodes[i].dataset.i18n ) {
nodes[i].innerHTML = browser.i18n.getMessage(attr); nodes[i].innerHTML = browser.i18n.getMessage(value);
} }
} }
}); });

@ -1,3 +1,6 @@
/** global: chrome */
/** global: browser */
document.addEventListener('DOMContentLoaded', function() { document.addEventListener('DOMContentLoaded', function() {
var var
slugify, popup, slugify, popup,
@ -34,6 +37,8 @@ document.addEventListener('DOMContentLoaded', function() {
var callback = function(tabs) { var callback = function(tabs) {
function sendGetApps(response) { function sendGetApps(response) {
var html;
if ( response.tabCache && response.tabCache.count > 0 ) { if ( response.tabCache && response.tabCache.count > 0 ) {
detectedApps.innerHTML = ''; detectedApps.innerHTML = '';

@ -508,9 +508,6 @@ var wappalyzer = (function() {
driver('ping'); driver('ping');
} }
apps = null;
data = null;
driver('displayApps'); driver('displayApps');
} }
}; };

Loading…
Cancel
Save