Skip to content

Commit c7027ca

Browse files
committed
Update resource path setting for dwt
1 parent 276d77d commit c7027ca

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

package-lock.json

Lines changed: 7 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"@angular/platform-browser-dynamic": "~13.3.0",
2020
"@angular/router": "~13.3.0",
2121
"angular-barcode-mrz-document-scanner": "file:",
22-
"dwt": "^18.5.0-patch-20240517",
22+
"dwt": "^18.5.1",
2323
"dynamsoft-capture-vision-bundle": "^2.4.2000",
2424
"dynamsoft-capture-vision-dnn": "^1.0.20",
2525
"dynamsoft-capture-vision-std": "^1.4.10",

src/app/product-list/product-list.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ export class ProductListComponent {
4545
dcp: getFullUrl('assets/dynamsoft-code-parser/'),
4646
dnn: getFullUrl('assets/dynamsoft-capture-vision-dnn/'),
4747
dlrData: getFullUrl('assets/dynamsoft-label-recognizer-data/'),
48+
dwt: getFullUrl('assets/dynamic-web-twain/'),
4849
};
4950

5051
try {
@@ -63,7 +64,7 @@ export class ProductListComponent {
6364

6465
// DWT
6566
Dynamsoft.DWT.ProductKey = licenseKey;
66-
Dynamsoft.DWT.ResourcesPath = "assets/dynamic-web-twain";
67+
// Dynamsoft.DWT.ResourcesPath = "assets/dynamic-web-twain";
6768
Dynamsoft.DWT.UseLocalService = true;
6869
} catch (error) {
6970
console.log(error);

0 commit comments

Comments
 (0)