mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-08 08:39:59 +00:00
Remove download permission in favour of just opening download link in new tab
This commit is contained in:
@@ -41,7 +41,6 @@
|
||||
"page": "ui/options/index.html"
|
||||
},
|
||||
"permissions": [
|
||||
"downloads",
|
||||
"history",
|
||||
"menus",
|
||||
"menus.overrideContext",
|
||||
|
||||
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user