feat: unified background.js script

This commit is contained in:
David Ralph 2024-02-18 10:20:25 +00:00
parent 76cf7c9a83
commit c2f850febd
2 changed files with 5 additions and 10 deletions

View File

@ -1,10 +0,0 @@
/* eslint-disable no-undef */
chrome.runtime.setUninstallURL('https://muetab.com/uninstall');
chrome.runtime.onInstalled.addListener((details) => {
if (details.reason === 'install') {
chrome.tabs.create({
url: chrome.runtime.getURL('index.html'),
});
}
});

View File

@ -1,4 +1,9 @@
/* eslint-disable no-use-before-define */
/* eslint-disable no-undef */
if (typeof browser === "undefined") {
var browser = chrome;
}
browser.runtime.setUninstallURL('https://muetab.com/uninstall');
browser.runtime.onInstalled.addListener((details) => {