From da9b6c5245e094fa99ee516fd3da153783fdab94 Mon Sep 17 00:00:00 2001 From: lilia Date: Fri, 17 Feb 2017 12:48:59 -0800 Subject: [PATCH] Add logging for install and update events // FREEBIE --- js/chromium.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/js/chromium.js b/js/chromium.js index 5d3e5ee2..47574a4d 100644 --- a/js/chromium.js +++ b/js/chromium.js @@ -275,7 +275,12 @@ if (chrome.runtime.onInstalled) { chrome.runtime.onInstalled.addListener(function(options) { if (options.reason === 'install') { + console.log('new install'); extension.install(); + } else if (options.reason === 'update') { + console.log('new update. previous version:', options.previousVersion); + } else { + console.log('onInstalled', options.reason); } }); }