Skip to content

Commit

Permalink
Add logging for install and update events
Browse files Browse the repository at this point in the history
// FREEBIE
  • Loading branch information
liliakai committed Feb 17, 2017
1 parent 54b8561 commit da9b6c5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions js/chromium.js
Expand Up @@ -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);
}
});
}
Expand Down

0 comments on commit da9b6c5

Please sign in to comment.