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"
|
"page": "ui/options/index.html"
|
||||||
},
|
},
|
||||||
"permissions": [
|
"permissions": [
|
||||||
"downloads",
|
|
||||||
"history",
|
"history",
|
||||||
"menus",
|
"menus",
|
||||||
"menus.overrideContext",
|
"menus.overrideContext",
|
||||||
|
|||||||
@@ -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({
|
||||||
|
|||||||
Reference in New Issue
Block a user