mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-07-13 16:43:53 +01:00
Add logging for install and update events
// FREEBIE
This commit is contained in:
@@ -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);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user