From 0bff623f17c6dddb4a64a7e36b5ff223ef17134d Mon Sep 17 00:00:00 2001 From: Elbert Alias Date: Sun, 31 Jul 2016 12:38:57 +1000 Subject: [PATCH] Label error messages in Firefox and Chrome only --- src/drivers/chrome/js/driver.js | 2 +- src/drivers/firefox/driver.js | 2 +- src/drivers/firefox/lib | 2 +- src/wappalyzer.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/drivers/chrome/js/driver.js b/src/drivers/chrome/js/driver.js index aa30aed3b..fdea9141c 100644 --- a/src/drivers/chrome/js/driver.js +++ b/src/drivers/chrome/js/driver.js @@ -19,7 +19,7 @@ * Log messages to console */ log: function(args) { - console.log(args.message); + console.log('[wappalyzer ' + args.type + '] ' + args.message); }, /** diff --git a/src/drivers/firefox/driver.js b/src/drivers/firefox/driver.js index 4e60afbe4..71ef1a2d7 100644 --- a/src/drivers/firefox/driver.js +++ b/src/drivers/firefox/driver.js @@ -347,7 +347,7 @@ * Log messages to console */ log: function(args) { - console.log(args.message); + console.log('[wappalyzer ' + args.type + '] ' + args.message); }, /** diff --git a/src/drivers/firefox/lib b/src/drivers/firefox/lib index 6e4ec63d6..b6bc25523 100644 --- a/src/drivers/firefox/lib +++ b/src/drivers/firefox/lib @@ -217,7 +217,7 @@ var wappalyzer = (function() { message = JSON.stringify(message); } - driver('log', { message: '[wappalyzer ' + type + '] ' + message, type: type }); + driver('log', { message: message, type: type }); }, /** diff --git a/src/wappalyzer.js b/src/wappalyzer.js index 6e4ec63d6..b6bc25523 100644 --- a/src/wappalyzer.js +++ b/src/wappalyzer.js @@ -217,7 +217,7 @@ var wappalyzer = (function() { message = JSON.stringify(message); } - driver('log', { message: '[wappalyzer ' + type + '] ' + message, type: type }); + driver('log', { message: message, type: type }); }, /**