From 734c8b9d2ca81e0514d59de3a356ed8f2424cba0 Mon Sep 17 00:00:00 2001 From: yushulx Date: Tue, 14 Nov 2023 10:39:54 +0800 Subject: [PATCH] Updated --- RazorBarcodeLibrary/wwwroot/barcodeJsInterop.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/RazorBarcodeLibrary/wwwroot/barcodeJsInterop.js b/RazorBarcodeLibrary/wwwroot/barcodeJsInterop.js index 1025ee8..042635d 100644 --- a/RazorBarcodeLibrary/wwwroot/barcodeJsInterop.js +++ b/RazorBarcodeLibrary/wwwroot/barcodeJsInterop.js @@ -20,7 +20,12 @@ export function getVersion() { export function setLicense(license) { if (!Dynamsoft) return; - Dynamsoft.DBR.BarcodeScanner.license = license; + try { + Dynamsoft.DBR.BarcodeScanner.license = license; + } + catch (ex) { + console.error(ex); + } } export async function loadWasm() {