Fix Scruntinizer issues

main
Elbert Alias 8 years ago
parent d4a4bfd3ee
commit 2492bbf8d0

@ -175,7 +175,7 @@
};
page.open(url, function(status) {
var html, environmentVars;
var html, environmentVars = '';
if ( status === 'success' ) {
html = page.content;
@ -186,7 +186,7 @@
// Collect environment variables
environmentVars = page.evaluate(function() {
var i, environmentVars;
var i, environmentVars = '';
for ( i in window ) {
environmentVars += i + ' ';

@ -2,6 +2,11 @@
* WebExtension driver
*/
/** global: browser */
/** global: chrome */
/** global: wappalyzer */
/** global: XMLHttpRequest */
(function() {
if ( wappalyzer == null ) {
return;

@ -1,6 +1,8 @@
/** global: browser */
document.addEventListener('DOMContentLoaded', function() {
var
i, value,
i, value, attr,
nodes = document.getElementsByTagName('*');
for ( i = 0; i < nodes.length; i ++ ) {

@ -10,5 +10,7 @@
document.getElementById('wappalyzerData').appendChild(document.createComment(environmentVars));
document.getElementById('wappalyzerData').dispatchEvent(e);
} catch(e) { }
} catch(e) {
// Fail quietly
}
}());

@ -1,4 +1,5 @@
/** global: localStorage */
/** global: browser */
/** global: wappalyzer */
document.addEventListener('DOMContentLoaded', function() {
var d = document;
@ -7,9 +8,17 @@ document.addEventListener('DOMContentLoaded', function() {
init: function() {
options.load();
d.querySelector('#github' ).addEventListener('click', function() { open(wappalyzer.config.githubURL); });
d.querySelector('#twitter' ).addEventListener('click', function() { open(wappalyzer.config.twitterURL); });
d.querySelector('#wappalyzer').addEventListener('click', function() { open(wappalyzer.config.websiteURL); });
d.querySelector('#github').addEventListener('click', function() {
open(wappalyzer.config.githubURL);
});
d.querySelector('#twitter').addEventListener('click', function() {
open(wappalyzer.config.twitterURL);
});
d.querySelector('#wappalyzer').addEventListener('click', function() {
open(wappalyzer.config.websiteURL);
});
},
get: function(name, defaultValue, callback) {

@ -385,6 +385,7 @@ var wappalyzer = (function() {
});
break;
default:
}
}
}

Loading…
Cancel
Save