1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-07-16 11:36:20 +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.
return window.open(filePath);
chrome.downloads.download(
/* chrome.downloads.download(
{
url: filePath
},
@ -59,7 +59,7 @@ function saveScreenshot(dataURI) {
window.open(filePath);
}
}
);
); */
}
function errorHandler(e) {

View File

@ -212,9 +212,13 @@ export function downloadFile(fileName, blob) {
a.click();
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),
filename: fileName,
saveAs: true
@ -228,7 +232,7 @@ export function downloadFile(fileName, blob) {
);
} else {
downloadWithAnchor();
}
} */
}
export function writeFile(name, blob, cb) {