Fix Scruntinizer issues

main
Elbert Alias 8 years ago
parent 2492bbf8d0
commit cba85bcee8

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

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

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

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

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

Loading…
Cancel
Save