Skip to content

Commit

Permalink
Reference the current release explicitly in CDN links
Browse files Browse the repository at this point in the history
  • Loading branch information
undecaf committed Jun 19, 2022
1 parent bed468f commit fe5c55f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ An example that scans a static image file:
<pre id="result"></pre>

<script type="module">
import * as zbarWasm from 'https://cdn.jsdelivr.net/npm/@undecaf/zbar-wasm/dist/main.js'
import * as zbarWasm from 'https://cdn.jsdelivr.net/npm/@undecaf/zbar-wasm@0.9.11/dist/main.js'
(async () => {
const
Expand Down Expand Up @@ -85,15 +85,15 @@ Almost identical to the snippet above, just replace the lines
```html
<script type="module">
import * as zbarWasm from 'https://cdn.jsdelivr.net/npm/@undecaf/zbar-wasm/dist/main.js'
import * as zbarWasm from 'https://cdn.jsdelivr.net/npm/@undecaf/zbar-wasm@0.9.11/dist/main.js'
```
with
```html
<script src="https://cdn.jsdelivr.net/npm/@undecaf/zbar-wasm/dist/index.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@undecaf/zbar-wasm@0.9.11/dist/index.js"></script>
<script>
```
Expand All @@ -104,9 +104,9 @@ with
Installing:
```shell script
$ npm install @undecaf/zbar-wasm
$ npm install @undecaf/zbar-wasm@0.9.11
or
$ yarn add @undecaf/zbar-wasm
$ yarn add @undecaf/zbar-wasm@0.9.11
```
Using:
Expand Down
2 changes: 1 addition & 1 deletion docs/example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ <h5>Result</h5>
</div>
</div>

<script src="https://cdn.jsdelivr.net/npm/@undecaf/zbar-wasm/dist/index.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@undecaf/zbar-wasm@0.9.11/dist/index.js"></script>
<script src="js/main.js"></script>

</body>
Expand Down

0 comments on commit fe5c55f

Please sign in to comment.