ultrawidify/src/uw-bg.js

24 lines
552 B
JavaScript
Raw Normal View History

/**
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
* extension to work unless I kept this part of extension out of the ts file.
*/
2026-01-07 03:09:46 +01:00
import UWServer from '@src/ext/UWServer';
var BgVars = {
arIsActive: true,
hasVideos: false,
currentSite: ""
}
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({
url: chrome.runtime.getURL("ui/pages/settings/index.html#updated")
2025-10-14 18:55:45 +02:00
});
}
});