diff --git a/src/core/QRSVG.ts b/src/core/QRSVG.ts index b02ee7c4..b497c3bc 100644 --- a/src/core/QRSVG.ts +++ b/src/core/QRSVG.ts @@ -481,6 +481,7 @@ export default class QRSVG { } resolve(); }; + image.onerror = reject; image.src = options.image; } });