Skip to content

Commit

Permalink
Downloads binary/octet-stream
Browse files Browse the repository at this point in the history
  • Loading branch information
BilawalAhmed0900 committed Jun 25, 2019
1 parent 29dd2ab commit 11ae76c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions background.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ var toDownloadMime = [
"application/x-zip-compressed",
"flv-application/octet-stream",
"application/x-iso9660-image",
"application/octet-stream"
"application/octet-stream",
"binary/octet-stream"
];

function sendUsingCookies(downloadItem, _cookies)
Expand All @@ -83,7 +84,7 @@ function sendUsingCookies(downloadItem, _cookies)

function updater_function(downloadItem)
{
if (downloadItem.url != "" && downloadItem.url.indexOf("ftp://") == -1 && downloadItem.url.indexOf("blob:") == -1)
if (downloadItem.url != "" && downloadItem.url.indexOf("ftp://") == -1 && downloadItem.url.indexOf("blob:") == -1)
{
var audioRegex = /audio\/.*/gm
var videoRegex = /video\/.*/gm
Expand Down

0 comments on commit 11ae76c

Please sign in to comment.