Add logging for install and update events
// FREEBIE
This commit is contained in:
parent
54b856139a
commit
da9b6c5245
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue