Remove download permission in favour of just opening download link in new tab

This commit is contained in:
hensm
2026-03-07 12:34:08 +00:00
parent f8c480c1d3
commit c5846a05d9
2 changed files with 2 additions and 3 deletions

View File

@@ -41,7 +41,6 @@
"page": "ui/options/index.html"
},
"permissions": [
"downloads",
"history",
"menus",
"menus.overrideContext",

View File

@@ -197,8 +197,8 @@
}
if (downloadUrl) {
// If there's a valid download URL, download that.
browser.downloads.download({ url: downloadUrl });
// If there's a valid download URL, open in a new tab.
browser.tabs.create({ url: downloadUrl });
} else {
// ...otherwise open a new tab for the update page.
browser.tabs.create({