Removed Fennec-specific code.

This commit is contained in:
hackademix 2024-10-20 20:22:30 +02:00
parent 78ac354c04
commit f89578297d
No known key found for this signature in database
GPG Key ID: 231A83AFDA9C2434
1 changed files with 2 additions and 20 deletions

View File

@ -141,27 +141,9 @@
}
// wiring main UI
const ba = browser.browserAction;
if ("setIcon" in ba) {
//desktop or Fenix
ba.setPopup({
popup: popupURL
});
} else {
// Fennec
ba.onClicked.addListener(async tab => {
try {
await browser.tabs.remove(await browser.tabs.query({
url: popupURL
}));
} catch (e) {}
await browser.tabs.create({
url: popupFor(tab.id)
});
});
}
browser.browserAction.setPopup({popup: popupURL});
}
}
};
const messageHandler = {
async updateSettings(settings, sender) {