From bf22c298525bdeeb5c3f8db7d7097f5b750072e6 Mon Sep 17 00:00:00 2001 From: Elbert Alias Date: Sun, 14 Oct 2012 16:42:36 +1100 Subject: [PATCH] Work on Jetpack driver --- drivers/firefox-jetpack/lib/driver.js | 30 ++++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/drivers/firefox-jetpack/lib/driver.js b/drivers/firefox-jetpack/lib/driver.js index 813b3ab77..e8b867036 100644 --- a/drivers/firefox-jetpack/lib/driver.js +++ b/drivers/firefox-jetpack/lib/driver.js @@ -1,4 +1,28 @@ -var wappalyzer = {}; +/** + * Jetpack driver + */ -require('wappalyzer'); -require('apps'); +(function() { + //'use strict'; + var + main = require('wappalyzer'), + w = main.wappalyzer + ; + + w.driver = { + /** + * Log messages to console + */ + log: function(args) { + console.log(args.message); + }, + + /** + * Initialize + */ + init: function(callback) { + } + } + + w.init(); +})();