|
1 | 1 | import DBR from "dynamsoft-javascript-barcode"; |
2 | 2 |
|
3 | 3 | /** LICENSE ALERT - README |
4 | | - * The library requires a license to work, you use the API organizationID to tell the program where to fetch your license. |
5 | | - * If the Organizaion ID is not specified, a 7-day (public) trial license will be used by default which is the case in this sample. |
6 | | - * Note that network connection is required for this license to work. |
| 4 | + * |
| 5 | + * The library requires a license to work. |
| 6 | + * If the license is not specified, a free public trial license will be used by default which is the case in this sample. |
| 7 | + * Note that network connection is required for the public license to work. |
| 8 | + * For more info, please check https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=8.8.7&utm_source=github#specify-the-license or contact support@dynamsoft.com. |
7 | 9 | */ |
8 | 10 |
|
9 | | -/* When using your own license, uncomment the following line and specify your Organization ID. */ |
| 11 | +/* When using your own license, uncomment the following line and specify your license. */ |
10 | 12 |
|
11 | | -// Dynamsoft.DBR.organizationID = "YOUR-ORGANIZATION-ID"; |
12 | | - |
13 | | -/* If you don't have a license yet, you can request a trial on this page: https://www.dynamsoft.com/customer/license/trialLicense?product=dbr&package=js&utm_source=samples */ |
14 | | -/* For more information, please refer to https://www.dynamsoft.com/license-server/docs/about/licensefaq.html?ver=latest#how-to-use-a-trackable-license. */ |
15 | | - |
16 | | -/* The API "productKeys" is an alternative way to license the library, the major difference is that it does not require a network. Contact support@dynamsoft.com for more information. */ |
17 | | - |
18 | | -// Dynamsoft.DBR.productKeys = "YOUR-PRODUCT-KEY"; |
| 13 | +// DBR.BarcodeReader.license = "YOUR-ORGANIZATION-ID or YOUR-HANDSHAKECODE or AN-OFFLINE-LICENSE or ANY-OTHER-TYPE-OF-SUPPORTED-LICENSE-STRING"; |
19 | 14 |
|
20 | 15 | /** LICENSE ALERT - THE END */ |
21 | 16 |
|
22 | | -DBR.engineResourcePath = "https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@8.8.7/dist/"; |
| 17 | +DBR.BarcodeReader.engineResourcePath = "https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@8.8.7/dist/"; |
23 | 18 |
|
24 | 19 | let pScanner = null; |
25 | 20 | if (document.getElementById('readBarcode')) { |
|
0 commit comments