vue-qrcode-reader
Advanced tools
Comparing version 2.3.17 to 2.3.18
{ | ||
"name": "vue-qrcode-reader", | ||
"description": "A set of Vue.js components for detecting and decoding QR codes.", | ||
"version": "2.3.17", | ||
"version": "2.3.18", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Niklas Gruhn", |
@@ -21,3 +21,10 @@ const inlineWorker = func => { | ||
const imageData = event.data; | ||
const result = jsQR(imageData.data, imageData.width, imageData.height); | ||
let result = null; | ||
try { | ||
result = jsQR(imageData.data, imageData.width, imageData.height); | ||
} catch (error) { | ||
if (!(error instanceof RangeError)) { | ||
throw error; | ||
} | ||
} | ||
@@ -24,0 +31,0 @@ let content = null; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
3263381
19727