1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-07-16 19:46:19 +02:00

eslint fixes

This commit is contained in:
Kushagra Gour
2018-07-31 01:22:26 +05:30
parent 3e8e11a4aa
commit 06fbfda8c9
2 changed files with 10 additions and 6 deletions

View File

@@ -48,7 +48,7 @@ function saveScreenshot(dataURI) {
// anymore. // anymore.
return window.open(filePath); return window.open(filePath);
chrome.downloads.download( /* chrome.downloads.download(
{ {
url: filePath url: filePath
}, },
@@ -59,7 +59,7 @@ function saveScreenshot(dataURI) {
window.open(filePath); window.open(filePath);
} }
} }
); ); */
} }
function errorHandler(e) { function errorHandler(e) {

View File

@@ -212,9 +212,13 @@ export function downloadFile(fileName, blob) {
a.click(); a.click();
a.remove(); a.remove();
} }
if (false && window.IS_EXTENSION) {
chrome.downloads.download( // HACK: because chrome.downloads isn't working on optional permissions
{ // anymore.
downloadWithAnchor();
/* if (false && window.IS_EXTENSION) {
chrome.downloads.download({
url: window.URL.createObjectURL(blob), url: window.URL.createObjectURL(blob),
filename: fileName, filename: fileName,
saveAs: true saveAs: true
@@ -228,7 +232,7 @@ export function downloadFile(fileName, blob) {
); );
} else { } else {
downloadWithAnchor(); downloadWithAnchor();
} } */
} }
export function writeFile(name, blob, cb) { export function writeFile(name, blob, cb) {