Merge pull request #1447 from jvoisin/fix_various_warnings

Fix various warnings found by scrutinity
main
Elbert Alias 8 years ago committed by GitHub
commit ad671ca65b

@ -54,7 +54,7 @@
firstRun = true;
// Set defaults
for ( option in defaults ) {
for ( var option in defaults ) {
localStorage[option] = defaults[option];
}
} else if ( version !== localStorage['version'] && parseInt(localStorage['upgradeMessage'], 10) ) {
@ -189,7 +189,7 @@
if ( count > 0 ) {
// Find the main application to display
var i, appName, found = false;
var appName, found = false;
w.driver.categoryOrder.forEach(function(match) {
for ( appName in w.detected[url] ) {

@ -15,9 +15,9 @@ document.addEventListener('DOMContentLoaded', function() {
},
load: function() {
for ( option in options.opts ) {
if ( value = localStorage[option] ) {
options.opts[option] = value;
for ( var option in options.opts ) {
if ( localStorage[option] ) {
options.opts[option] = localStorage[option];
}
}

@ -1,11 +1,7 @@
(function() {
var lastEnv = [];
try {
if ( document && document.contentType === 'text/html' ) {
var
html = new XMLSerializer().serializeToString(document),
env = []; // TODO: Remove, `env` not used in this scope?
var html = new XMLSerializer().serializeToString(document),
self.port.emit('log', html);

@ -54,7 +54,7 @@
firstRun = true;
// Set defaults
for ( option in defaults ) {
for ( var option in defaults ) {
localStorage[option] = defaults[option];
}
} else if ( version !== localStorage['version'] && parseInt(localStorage['upgradeMessage'], 10) ) {
@ -195,7 +195,7 @@
if ( count > 0 ) {
// Find the main application to display
var i, appName, found = false;
var appName, found = false;
w.driver.categoryOrder.forEach(function(match) {
for ( appName in w.detected[url] ) {

@ -112,8 +112,6 @@ var exports = {};
try {
dict[key] = window.decodeURIComponent(val);
} catch (e) {
continue;
}
}
return dict;
@ -307,6 +305,7 @@ var exports = {};
return div;
}
}
return null;
};
TopSearcher.prototype._jumpedOut = function(el) {
@ -988,6 +987,7 @@ var exports = {};
}
}
}
return null;
}
function onPostMessage(event) {

@ -242,7 +242,7 @@ var wappalyzer = (function() {
*/
analyze: function(hostname, url, data) {
var
i, j, app, confidence, type, regexMeta, regexScript, match, content, meta, header, version, id,
i, app, confidence, type, regexMeta, regexScript, match, content, meta, header, version, id,
profiler = new Profiler(),
apps = {},
excludes = [],

Loading…
Cancel
Save