massive update, probably broken
[dotfiles/.git] / .config / chromium / Default / Extensions / lngfncacljheahfpahadgipefkbagpdl / 1.7.5_0 / js / background.js
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
5                         type:'basic',\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
14                                 }\r
15                         });\r
16                 });\r
17         }\r
18         chrome.storage.local.set({'extensionMode':0}); \r
19 });