Fixed Chrome driver running twice

main
Elbert Alias 12 years ago
parent 17dc933d0d
commit 19415b0efa

@ -299,8 +299,6 @@ var wappalyzer = (function() {
break; break;
} }
w.log('xxxxxxxxxxxxx'+data.html.length);
parse(w.apps[app][type]).map(function(pattern) { parse(w.apps[app][type]).map(function(pattern) {
profiler.checkPoint(app, type, pattern.regex); profiler.checkPoint(app, type, pattern.regex);

@ -8,7 +8,6 @@
<script src="js/wappalyzer.js"></script> <script src="js/wappalyzer.js"></script>
<script src="js/defaults.js"></script> <script src="js/defaults.js"></script>
<script src="js/driver.js"></script> <script src="js/driver.js"></script>
<script src="js/background.js"></script>
</head> </head>
<body> <body>
</body> </body>

@ -1,3 +0,0 @@
wappalyzer.log('bg.html');
wappalyzer.init();

@ -101,7 +101,7 @@
} }
}); });
chrome.tabs.getAllInWindow(null, function(tabs) { chrome.tabs.query({}, function(tabs) {
tabs.map(function(tab) { tabs.map(function(tab) {
if ( tab.url.match(/^https?:\/\//) ) { if ( tab.url.match(/^https?:\/\//) ) {
chrome.tabs.executeScript(tab.id, { file: 'js/content.js' }); chrome.tabs.executeScript(tab.id, { file: 'js/content.js' });
@ -233,4 +233,4 @@
}; };
w.init(); w.init();
})(); }());

@ -299,8 +299,6 @@ var wappalyzer = (function() {
break; break;
} }
w.log('xxxxxxxxxxxxx'+data.html.length);
parse(w.apps[app][type]).map(function(pattern) { parse(w.apps[app][type]).map(function(pattern) {
profiler.checkPoint(app, type, pattern.regex); profiler.checkPoint(app, type, pattern.regex);

@ -299,8 +299,6 @@ var wappalyzer = (function() {
break; break;
} }
w.log('xxxxxxxxxxxxx'+data.html.length);
parse(w.apps[app][type]).map(function(pattern) { parse(w.apps[app][type]).map(function(pattern) {
profiler.checkPoint(app, type, pattern.regex); profiler.checkPoint(app, type, pattern.regex);

@ -299,8 +299,6 @@ var wappalyzer = (function() {
break; break;
} }
w.log('xxxxxxxxxxxxx'+data.html.length);
parse(w.apps[app][type]).map(function(pattern) { parse(w.apps[app][type]).map(function(pattern) {
profiler.checkPoint(app, type, pattern.regex); profiler.checkPoint(app, type, pattern.regex);

@ -299,8 +299,6 @@ var wappalyzer = (function() {
break; break;
} }
w.log('xxxxxxxxxxxxx'+data.html.length);
parse(w.apps[app][type]).map(function(pattern) { parse(w.apps[app][type]).map(function(pattern) {
profiler.checkPoint(app, type, pattern.regex); profiler.checkPoint(app, type, pattern.regex);

@ -299,8 +299,6 @@ var wappalyzer = (function() {
break; break;
} }
w.log('xxxxxxxxxxxxx'+data.html.length);
parse(w.apps[app][type]).map(function(pattern) { parse(w.apps[app][type]).map(function(pattern) {
profiler.checkPoint(app, type, pattern.regex); profiler.checkPoint(app, type, pattern.regex);

@ -299,8 +299,6 @@ var wappalyzer = (function() {
break; break;
} }
w.log('xxxxxxxxxxxxx'+data.html.length);
parse(w.apps[app][type]).map(function(pattern) { parse(w.apps[app][type]).map(function(pattern) {
profiler.checkPoint(app, type, pattern.regex); profiler.checkPoint(app, type, pattern.regex);