Skip to content

Commit 858a65e

Browse files
committed
what the brah emoji
1 parent 76b75ab commit 858a65e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/compiler/jsexecute.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ runtimeFunctions.resolveImageURL = `const resolveImageURL = imgURL =>
600600
typeof imgURL === 'object' && imgURL.type === 'canvas'
601601
? Promise.resolve(imgURL.canvas)
602602
: new Promise(async resolve => {
603-
if (!await vm.securityManager.canFetch(imgUrl)) return resolve(imgURL);
603+
if (!await vm.securityManager.canFetch(imgUrl)) return resolve();
604604
const image = new Image();
605605
image.crossOrigin = "anonymous";
606606
image.onload = resolve(image);

0 commit comments

Comments
 (0)