We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76b75ab commit 858a65eCopy full SHA for 858a65e
1 file changed
src/compiler/jsexecute.js
@@ -600,7 +600,7 @@ runtimeFunctions.resolveImageURL = `const resolveImageURL = imgURL =>
600
typeof imgURL === 'object' && imgURL.type === 'canvas'
601
? Promise.resolve(imgURL.canvas)
602
: new Promise(async resolve => {
603
- if (!await vm.securityManager.canFetch(imgUrl)) return resolve(imgURL);
+ if (!await vm.securityManager.canFetch(imgUrl)) return resolve();
604
const image = new Image();
605
image.crossOrigin = "anonymous";
606
image.onload = resolve(image);
0 commit comments