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" "page": "ui/options/index.html"
}, },
"permissions": [ "permissions": [
"downloads",
"history", "history",
"menus", "menus",
"menus.overrideContext", "menus.overrideContext",

View File

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