2021-03-06 03:35:23 +01:00
|
|
|
/**
|
2024-05-30 01:02:09 +02:00
|
|
|
* NOTE: we cannot get rid of this js file. I tried for 30 seconds and I couldn't get
|
2021-03-06 03:35:23 +01:00
|
|
|
* extension to work unless I kept this part of extension out of the ts file.
|
|
|
|
|
*/
|
2018-12-30 23:41:44 +01:00
|
|
|
|
2024-05-30 01:02:09 +02:00
|
|
|
import UWServer from './ext/UWServer';
|
2020-03-08 18:38:09 +01:00
|
|
|
|
2018-01-26 00:09:08 +01:00
|
|
|
var BgVars = {
|
|
|
|
|
arIsActive: true,
|
2018-02-02 00:21:29 +01:00
|
|
|
hasVideos: false,
|
|
|
|
|
currentSite: ""
|
|
|
|
|
}
|
|
|
|
|
|
2021-03-06 03:35:23 +01:00
|
|
|
const server = new UWServer();
|
2025-10-14 18:55:45 +02:00
|
|
|
|
|
|
|
|
// add update listener
|
|
|
|
|
chrome.runtime.onInstalled.addListener((details) => {
|
|
|
|
|
if (details.reason === "update") {
|
|
|
|
|
chrome.tabs.create({
|
2025-12-16 22:57:19 +01:00
|
|
|
url: chrome.runtime.getURL("ui/pages/settings/index.html#updated")
|
2025-10-14 18:55:45 +02:00
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|