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