mirror of
https://github.com/chinchang/web-maker.git
synced 2025-07-14 02:26:20 +02:00
Download files using app approach. Fixes #313.
This is done till chrome.downloads works again.
This commit is contained in:
@ -44,6 +44,10 @@ function saveScreenshot(dataURI) {
|
||||
'/temporary/' +
|
||||
fileName;
|
||||
|
||||
// HACK: because chrome.downloads isn't working on optional permissions
|
||||
// anymore.
|
||||
return window.open(filePath);
|
||||
|
||||
chrome.downloads.download(
|
||||
{
|
||||
url: filePath
|
||||
|
Reference in New Issue
Block a user