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:
@@ -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) {
|
||||||
|
12
src/utils.js
12
src/utils.js
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user