BlinkID / blinkid-in-browser

BlinkID In-browser SDK for WebAssembly-enabled browsers.
https://microblink.com/blinkid
59 stars 30 forks source link

wasmModuleName option not working #71

Open sebastien-roch opened 2 years ago

sebastien-roch commented 2 years ago

I have renamed the blink ID files and trying to load them with this snippet:

const loadSettings = new BlinkIDSDK.WasmSDKLoadSettings(options.licenseKey);
loadSettings.engineLocation = "(some-absolute-URL-of-mine)";
loadSettings.wasmModuleName = "custom";
const wasmSDK = await BlinkIDSDK.loadWasmModule(loadSettings);

Then custom.js is successfully loaded, but I get then a rejected promise Failed to load WASM in web worker!. I don't see the failing request in the network tab of chrome dev tools unfortunately.

image

Is this option really supported?

I am using Blink ID v.5.15.0 on Chrome 99. Thanks