Skip to content

Commit

Permalink
fix #42
Browse files Browse the repository at this point in the history
  • Loading branch information
odahcam authored Feb 25, 2021
1 parent 44a9efa commit c7ade80
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Or just import an script tag from your favorite NPM registry connected CDN:

```html
<script type="module">
import { BrowserQRCodeReader } from '@zxing/library';
import { BrowserQRCodeReader } from '@zxing/browser';
const codeReader = new BrowserQRCodeReader();
Expand All @@ -58,7 +58,7 @@ Or just import an script tag from your favorite NPM registry connected CDN:

```html
<script type="module">
import('@zxing/library').then({ BrowserQRCodeReader } => {
import('@zxing/browser').then({ BrowserQRCodeReader } => {
const codeReader = new BrowserQRCodeReader();
Expand All @@ -73,7 +73,7 @@ Or just import an script tag from your favorite NPM registry connected CDN:
```html
<script type="text/javascript" src="https://unpkg.com/requirejs"></script>
<script type="text/javascript">
require(['@zxing/library'], ZXingBrowser => {
require(['@zxing/browser'], ZXingBrowser => {
const codeReader = new ZXingBrowser.BrowserQRCodeReader();
Expand Down Expand Up @@ -193,5 +193,5 @@ You can also customize some options on the code reader at instantiation time. Mo

[![Bless](https://cdn.rawgit.com/LunaGao/BlessYourCodeTag/master/tags/alpaca.svg)](http://lunagao.github.io/BlessYourCodeTag/)

[0]: https://www.npmjs.com/package/@zxing/library
[0]: https://www.npmjs.com/package/@zxing/browser
[1]: https://github.com/zxing/zxing

0 comments on commit c7ade80

Please sign in to comment.