--- /dev/null
+chrome.runtime.onInstalled.addListener(function(details) {\r
+ const ver = chrome.runtime.getManifest().version;\r
+ if(details.reason == 'update') {\r
+ chrome.notifications.create(null, {\r
+ type:'basic',\r
+ iconUrl:"images/icon.png",\r
+ title:"Ultrawide Video updated",\r
+ message:"Update log: Version "+ver+" we're back!!! (updates coming soon)",\r
+ }, function(updateNotificationId) {\r
+ chrome.notifications.onClicked.addListener(function(notificationId) {\r
+ if(notificationId === updateNotificationId) {\r
+ chrome.tabs.create({url:"https://github.com/wltrsjames/Ultrawide-Video"});\r
+ chrome.notifications.clear(updateNotificationId);\r
+ }\r
+ });\r
+ });\r
+ }\r
+ chrome.storage.local.set({'extensionMode':0}); \r
+});
\ No newline at end of file