From 086df7418eae4cc8022c22d78128a8c17266c890 Mon Sep 17 00:00:00 2001 From: Gregory Eremin Date: Sat, 5 Jul 2014 15:06:39 +0700 Subject: [PATCH] Add log prefix --- background.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/background.js b/background.js index f01f1a5..8389b3a 100644 --- a/background.js +++ b/background.js @@ -281,7 +281,8 @@ } function log() { - if (false && console) { + if (typeof console !== 'undefined') { + Array.prototype.unshift.call(arguments, '[Whats There]'); console.log.apply(console, arguments); } }