Access to WASM and worker resourses (ProcMgr) in secure environment.

For the web component to work correctly, it requires additional files:

  • WASM: ProcMgr.wasm, ProcMgr.data

  • Worker: ProcMgr.worker.js

By default, these dependencies are loaded from a CDN configured  by Regula. You can host them locally for security reasons, but please note that in this case the availability, updates, and network performance of these files are your responsibility. To make the SDK load these resources locally, please follow these steps:

  1. Find the current link in window.RegulaDocumentSDK.workerPath and download the files from that location.

  2. Upload all three files (ProcMgr.worker.js, ProcMgr.wasm, ProcMgr.data). Do not rename them and keep them in the same folder.

  3. Set your custom path to the folder containing the files:

window.RegulaDocumentSDK.workerPath = 'https://<CUSTOM_PATH_TO_WASM_AND_WORKER_FILES_PATH>/';
Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.

Articles in this section