1 chrome.runtime.onInstalled.addListener(function(details) {
\r
2 const ver = chrome.runtime.getManifest().version;
\r
3 if(details.reason == 'update') {
\r
4 chrome.notifications.create(null, {
\r
6 iconUrl:"images/icon.png",
\r
7 title:"Ultrawide Video updated",
\r
8 message:"Update log: Version "+ver+" we're back!!! (updates coming soon)",
\r
9 }, function(updateNotificationId) {
\r
10 chrome.notifications.onClicked.addListener(function(notificationId) {
\r
11 if(notificationId === updateNotificationId) {
\r
12 chrome.tabs.create({url:"https://github.com/wltrsjames/Ultrawide-Video"});
\r
13 chrome.notifications.clear(updateNotificationId);
\r
18 chrome.storage.local.set({'extensionMode':0});
\r