Add logging for install and update events

// FREEBIE
This commit is contained in:
lilia 2017-02-17 12:48:59 -08:00
parent 54b856139a
commit da9b6c5245

View file

@ -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);
}
});
}