Skip to content

Commit 3bdb83d

Browse files
update to internal commit da7544bb
1 parent d8f20ff commit 3bdb83d

File tree

1 file changed

+6
-14
lines changed
  • programming/javascript/user-guide

1 file changed

+6
-14
lines changed

programming/javascript/user-guide/index.md

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ The following sample code sets up the SDK and implements boundary detection on a
5555

5656
<head>
5757
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
58-
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-capture-vision-bundle@2.4.2000/dist/dcv.bundle.js"></script>
58+
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-capture-vision-bundle@2.4.2100/dist/dcv.bundle.js"></script>
5959
</head>
6060

6161
<body>
@@ -168,13 +168,13 @@ The simplest way to include the SDK is to use either the [jsDelivr](https://jsde
168168
- jsDelivr
169169

170170
```html
171-
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-capture-vision-bundle@2.4.2000/dist/dcv.bundle.js"></script>
171+
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-capture-vision-bundle@2.4.2100/dist/dcv.bundle.js"></script>
172172
```
173173

174174
- UNPKG
175175

176176
```html
177-
<script src="https://unpkg.com/dynamsoft-capture-vision-bundle@2.4.2000/dist/dcv.bundle.js"></script>
177+
<script src="https://unpkg.com/dynamsoft-capture-vision-bundle@2.4.2100/dist/dcv.bundle.js"></script>
178178
```
179179

180180
#### Host the SDK yourself
@@ -184,7 +184,7 @@ Besides using the CDN, you can also download the SDK and host its files on your
184184
- npm
185185

186186
```cmd
187-
npm i dynamsoft-capture-vision-bundle@2.4.2000 -E
187+
npm i dynamsoft-capture-vision-bundle@2.4.2100 -E
188188
# Compared with using CDN, you need to set up more resources.
189189
npm i dynamsoft-capture-vision-std@1.4.10 -E
190190
npm i dynamsoft-image-processing@2.4.20 -E
@@ -207,16 +207,8 @@ This is usually only required with frameworks like Angular or React, etc. where
207207
The purpose is to tell the SDK where to find the engine files (\*.worker.js, \*.wasm.js and \*.wasm, etc.). The API is called `Dynamsoft.Core.CoreModule.engineResourcePaths`:
208208

209209
```javascript
210-
//The following code uses the jsDelivr CDN, feel free to change it to your own location of these files
211-
Object.assign(Dynamsoft.Core.CoreModule.engineResourcePaths, {
212-
core: "https://cdn.jsdelivr.net/npm/dynamsoft-core@3.4.20/dist/",
213-
license: "https://cdn.jsdelivr.net/npm/dynamsoft-license@3.4.20/dist/",
214-
ddn: "https://cdn.jsdelivr.net/npm/dynamsoft-document-normalizer@2.4.20/dist/",
215-
cvr: "https://cdn.jsdelivr.net/npm/dynamsoft-capture-vision-router@2.4.20/dist/",
216-
dce: "https://cdn.jsdelivr.net/npm/dynamsoft-camera-enhancer@4.1.0/dist/",
217-
std: "https://cdn.jsdelivr.net/npm/dynamsoft-capture-vision-std@1.4.10/dist/",
218-
dip: "https://cdn.jsdelivr.net/npm/dynamsoft-image-processing@2.4.20/dist/",
219-
});
210+
//The following code uses the jsDelivr CDN as an example, feel free to change it to your own location of these files
211+
CoreModule.engineResourcePaths.rootDirectory = "https://cdn.jsdelivr.net/npm/";
220212
```
221213

222214
### Define necessary HTML elements

0 commit comments

Comments
 (0)