Skip to content

Commit

Permalink
Updated
Browse files Browse the repository at this point in the history
  • Loading branch information
yushulx committed Nov 14, 2023
1 parent 7939cbf commit 734c8b9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion RazorBarcodeLibrary/wwwroot/barcodeJsInterop.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 734c8b9

Please sign in to comment.