Skip to content

Commit c532f7f

Browse files
committed
Do not use ""
1 parent 42c1be0 commit c532f7f

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

modules/base/BasePainter.mjs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -807,11 +807,7 @@ async function svgToImage(svg, image_format, args) {
807807
});
808808
}
809809

810-
const blob = new Blob([doctype + svg], {
811-
type: "image/svg+xml;charset=utf-8"
812-
});
813-
814-
const img_src = URL.createObjectURL(blob);
810+
const img_src = URL.createObjectURL(new Blob([doctype + svg], { type: 'image/svg+xml;charset=utf-8' }));
815811

816812
return new Promise(resolveFunc => {
817813
const image = document.createElement('img');

0 commit comments

Comments
 (0)