idmission-web-sdk 0.0.6 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -14,7 +14,17 @@ render(<IdValidation submissionToken={YOUR_TOKEN} />, document.getElementById('r
|
|
|
14
14
|
|
|
15
15
|
Add the following script tag to your page's `<head>`:
|
|
16
16
|
```html
|
|
17
|
-
<script type="module" src="https://websdk-cdn-dev.idmission.com/
|
|
17
|
+
<script type="module" src="https://websdk-cdn-dev.idmission.com/websdk/latest/loader.js"></script>
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
You may subscribe to the `idmission-web-sdk.ready` event to be notified when loading has completed.
|
|
21
|
+
|
|
22
|
+
```html
|
|
23
|
+
<script type="module">
|
|
24
|
+
document.addEventListener('idmission-web-sdk.ready', () => {
|
|
25
|
+
// this code fires when the sdk has finished loading.
|
|
26
|
+
})
|
|
27
|
+
</script>
|
|
18
28
|
```
|
|
19
29
|
|
|
20
30
|
Then you may call any render method below, for example `renderIdValidation`, like so:
|