From 563d5e9539b0cc8536fbee38ce1f40472755f019 Mon Sep 17 00:00:00 2001 From: ElbertF Date: Mon, 20 Aug 2012 19:32:32 +1000 Subject: [PATCH] Fix for bookmarklet driver --- drivers/bookmarklet/index.html | 61 +++++++++++++++++++------------- drivers/bookmarklet/js/driver.js | 13 +++---- 2 files changed, 42 insertions(+), 32 deletions(-) diff --git a/drivers/bookmarklet/index.html b/drivers/bookmarklet/index.html index 4c74e5d7d..a550be879 100644 --- a/drivers/bookmarklet/index.html +++ b/drivers/bookmarklet/index.html @@ -40,42 +40,55 @@ diff --git a/drivers/bookmarklet/js/driver.js b/drivers/bookmarklet/js/driver.js index 8f0c292cb..eb5d2db9e 100644 --- a/drivers/bookmarklet/js/driver.js +++ b/drivers/bookmarklet/js/driver.js @@ -70,10 +70,7 @@ for ( i in window ) { env.push(i); } - w.analyze(domain, url, { - html: d.documentElement.innerHTML, - env: env - }); + w.analyze(domain, url, { html: d.documentElement.innerHTML, env: env }); }, getResponseHeaders: function() { @@ -101,9 +98,7 @@ } }); - w.analyze(domain, url, { - headers: responseHeaders - }); + w.analyze(domain, url, { headers: responseHeaders }); } } } @@ -115,6 +110,8 @@ * Display apps */ displayApps: function() { + w.log('func: diplayApps'); + var category, html @@ -127,7 +124,7 @@ '
' ; - if ( false && w.detected[url] != null && w.detected[url].length ) { + if ( w.detected[url] != null && w.detected[url].length ) { w.detected[url].map(function(app, i) { html += '
' +