Skip to content

Commit ae1b2d1

Browse files
Fix await usage in WASM file loading example in user guide
1 parent db57a03 commit ae1b2d1

2 files changed

Lines changed: 17 additions & 6 deletions

File tree

_includes/samples_index.html

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1075,7 +1075,7 @@
10751075
<span class="label">✨ Full Demo</span>
10761076
<div class="title">Official Online Demo</div>
10771077
<div class="description">Explore all features and capabilities in our comprehensive live demo</div>
1078-
<span
1078+
<!-- <span
10791079
class="github-badge"
10801080
title="View source code on GitHub"
10811081
onclick="event.stopPropagation(); window.open('https://github.com/Dynamsoft/barcode-reader-javascript-demo', '_blank'); return false;"
@@ -1086,7 +1086,7 @@
10861086
d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"
10871087
></path>
10881088
</svg>
1089-
</span>
1089+
</span> -->
10901090
</a>
10911091
</div>
10921092

@@ -1295,7 +1295,7 @@ <h3>
12951295
data-balloon-length="large"
12961296
data-balloon-pos="down"
12971297
aria-label="Simulates a shopping experience where users scan barcodes to add items to a dynamic cart."
1298-
><a class="button title demo-link" href="https://demo.dynamsoft.com/Samples/DBR/JS/scenarios/cart-builder/cart-builder.html" title="View live demo">Cart Builder</a
1298+
><a class="button title demo-link" href="https://demo.dynamsoft.com/Samples/DBR/JS/scenarios/cart-builder/index.html" title="View live demo">Cart Builder</a
12991299
><a
13001300
class="button title source-link"
13011301
href="https://github.com/Dynamsoft/barcode-reader-javascript-samples/blob/main/scenarios/cart-builder"
@@ -1306,7 +1306,7 @@ <h3>
13061306
</div>
13071307
<div class="file">
13081308
<span data-balloon-length="large" data-balloon-pos="down" aria-label="Scan a product barcode and simulate a search from a product database."
1309-
><a class="button title demo-link" href="https://demo.dynamsoft.com/Samples/DBR/JS/scenarios/scan-and-search/scan-and-search.html" title="View live demo">Scan and Search</a
1309+
><a class="button title demo-link" href="https://demo.dynamsoft.com/Samples/DBR/JS/scenarios/scan-and-search/index.html" title="View live demo">Scan and Search</a
13101310
><a
13111311
class="button title source-link"
13121312
href="https://github.com/Dynamsoft/barcode-reader-javascript-samples/blob/main/scenarios/scan-and-search"
@@ -1350,7 +1350,7 @@ <h3>
13501350
</div>
13511351
<div class="file">
13521352
<span data-balloon-length="large" data-balloon-pos="down" aria-label="Display decoded barcode text overlaid on the live camera video."
1353-
><a class="button title demo-link" href="https://demo.dynamsoft.com/Samples/DBR/JS/scenarios/show-result-texts-on-the-video/show-result-texts-on-the-video.html" title="View live demo"
1353+
><a class="button title demo-link" href="https://demo.dynamsoft.com/Samples/DBR/JS/scenarios/show-result-texts-on-the-video/index.html" title="View live demo"
13541354
>Show Result Texts on Video</a
13551355
><a
13561356
class="button title source-link"
@@ -1386,6 +1386,17 @@ <h3>
13861386
></span
13871387
>
13881388
</div>
1389+
<div class="file">
1390+
<span data-balloon-length="large" data-balloon-pos="down" aria-label="DPM(Direct Part Marking) code targeted demo with optimized settings."
1391+
><a class="button title demo-link" href="https://demo.dynamsoft.com/Samples/DBR/JS/scenarios/scan-dpm-codes/index.html" title="View live demo">Scan DPM Codes</a
1392+
><a
1393+
class="button title source-link"
1394+
href="https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/main/scenarios/scan-dpm-codes"
1395+
title="View source code on GitHub"
1396+
>Source</a
1397+
></span
1398+
>
1399+
</div>
13891400
<div class="file">
13901401
<span data-balloon-length="large" data-balloon-pos="down" aria-label="Demo focused on decoding common 2D barcode formats."
13911402
><a

programming/javascript/user-guide/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ The image processing logic is encapsulated within .wasm library files, and these
318318
319319
```js
320320
// Preload the .wasm files
321-
await Dynamsoft.Core.CoreModule.loadWasm();
321+
Dynamsoft.Core.CoreModule.loadWasm();
322322
```
323323
324324
### Step 2: Create a CaptureVisionRouter object

0 commit comments

Comments
 (0)