Skip to content

Commit f10ea62

Browse files
committed
Accept filename in download backend api
1 parent b767d83 commit f10ea62

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/background/start.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1564,7 +1564,11 @@ function start(browser) {
15641564
});
15651565
};
15661566
self.download = function(message, sender, sendResponse) {
1567-
chrome.downloads.download({ url: message.url, saveAs: message.saveAs });
1567+
chrome.downloads.download({
1568+
url: message.url,
1569+
filename: message.filename,
1570+
saveAs: message.saveAs
1571+
});
15681572
};
15691573
self.tabURLAccessed = function(message, sender, sendResponse) {
15701574
if (sender.tab) {

0 commit comments

Comments
 (0)