@@ -260,14 +260,7 @@ Add this code below to the `service-worker.js`
260260``` javascript
261261/* /service-worker.js */
262262const engineResourcePaths = {
263- std: " https://cdn.jsdelivr.net/npm/dynamsoft-capture-vision-std@1.4.10/dist/" ,
264- dip: " https://cdn.jsdelivr.net/npm/dynamsoft-image-processing@2.4.20/dist/" ,
265- core: " https://cdn.jsdelivr.net/npm/dynamsoft-core@3.4.20/dist/" ,
266- license: " https://cdn.jsdelivr.net/npm/dynamsoft-license@3.4.20/dist/" ,
267- cvr: " https://cdn.jsdelivr.net/npm/dynamsoft-capture-vision-router@2.4.21/dist/" ,
268- dbr: " https://cdn.jsdelivr.net/npm/dynamsoft-barcode-reader@10.4.20/dist/" ,
269- dce: " https://cdn.jsdelivr.net/npm/dynamsoft-camera-enhancer@4.1.0/dist/" ,
270- utility: " https://cdn.jsdelivr.net/npm/dynamsoft-utility@1.4.20/dist/" ,
263+ dbrBundle: " https://cdn.jsdelivr.net/npm/dynamsoft-barcode-reader-bundle@11.0.3000/dist/" ,
271264};
272265
273266// Files to cache
@@ -277,24 +270,21 @@ const appShellFiles = [
277270 " ./dynamsoft-192x192.png" ,
278271 " ./dynamsoft-512x512.png" ,
279272 " ./helloworld-pwa.json" ,
280- ` ${ engineResourcePaths .std } std.js` ,
281- ` ${ engineResourcePaths .std } std.wasm` ,
282- ` ${ engineResourcePaths .dip } dip.wasm` ,
283- ` ${ engineResourcePaths .core } core.js` ,
284- ` ${ engineResourcePaths .core } core.worker.js` ,
285- ` ${ engineResourcePaths .core } core.wasm` ,
286- ` ${ engineResourcePaths .license } license.js` ,
287- ` ${ engineResourcePaths .license } dls.license.dialog.html` ,
288- ` ${ engineResourcePaths .license } license.wasm` ,
289- ` ${ engineResourcePaths .utility } utility.js` ,
290- ` ${ engineResourcePaths .dbr } dbr.js` ,
291- ` ${ engineResourcePaths .dbr } dbr.wasm` ,
292- ` ${ engineResourcePaths .dbr } DBR-PresetTemplates.json` ,
293- ` ${ engineResourcePaths .cvr } cvr.js` ,
294- ` ${ engineResourcePaths .cvr } cvr.wasm` ,
295- ` ${ engineResourcePaths .cvr } cvr.worker.js` ,
296- ` ${ engineResourcePaths .dce } dce.js` ,
297- ` ${ engineResourcePaths .dce } dce.ui.html` ,
273+ ` ${ engineResourcePaths .dbrBundle } DBR-PresetTemplates.json` ,
274+ ` ${ engineResourcePaths .dbrBundle } dce.ui.xml` ,
275+ ` ${ engineResourcePaths .dbrBundle } barcode-reader.ui.xml` ,
276+ ` ${ engineResourcePaths .dbrBundle } dbr-with-onnx-simd.js` ,
277+ ` ${ engineResourcePaths .dbrBundle } dbr-with-onnx-simd.wasm` ,
278+ ` ${ engineResourcePaths .dbrBundle } dbr-with-onnx.js` ,
279+ ` ${ engineResourcePaths .dbrBundle } dbr-with-onnx.wasm` ,
280+ ` ${ engineResourcePaths .dbrBundle } dbr-without-onnx.js` ,
281+ ` ${ engineResourcePaths .dbrBundle } dbr-without-onnx.wasm` ,
282+ ` ${ engineResourcePaths .dbrBundle } dbr.bundle.esm.js` ,
283+ ` ${ engineResourcePaths .dbrBundle } dbr.bundle.js` ,
284+ ` ${ engineResourcePaths .dbrBundle } dbr.bundle.mjs` ,
285+ ` ${ engineResourcePaths .dbrBundle } dbr.bundle.worker.js` ,
286+ ` ${ engineResourcePaths .dbrBundle } dls.license.dialog.html` ,
287+ ` ${ engineResourcePaths .dbrBundle } OneDDeblur.data` ,
298288];
299289```
300290
0 commit comments