Skip to content
Snippets Groups Projects
Commit 8d65ccab authored by dsehnal's avatar dsehnal
Browse files

update packages

- use sass instead of node sass
parent cbd417ca
No related branches found
No related tags found
No related merge requests found
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
...@@ -91,7 +91,7 @@ export function printImageData(imageData: ImageData, options: Partial<PrintImage ...@@ -91,7 +91,7 @@ export function printImageData(imageData: ImageData, options: Partial<PrintImage
} }
canvas.toBlob(imgBlob => { canvas.toBlob(imgBlob => {
const objectURL = URL.createObjectURL(imgBlob); const objectURL = URL.createObjectURL(imgBlob!);
const existingImg = document.getElementById(o.id) as HTMLImageElement; const existingImg = document.getElementById(o.id) as HTMLImageElement;
const img = existingImg || document.createElement('img'); const img = existingImg || document.createElement('img');
img.id = o.id; img.id = o.id;
......
...@@ -61,7 +61,7 @@ export function download(data: Blob | string, downloadName = 'download') { ...@@ -61,7 +61,7 @@ export function download(data: Blob | string, downloadName = 'download') {
open(data); open(data);
} }
} else { } else {
const url = URL.createObjectURL(data); const url = URL.createObjectURL(typeof data === 'string' ? new Blob([data]) : data);
location.href = url; location.href = url;
setTimeout(() => URL.revokeObjectURL(url), 4E4); // 40s setTimeout(() => URL.revokeObjectURL(url), 4E4); // 40s
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment