Skip to content

Commit 3921a59

Browse files
committed
Update service-worker.js
1 parent 13e37d1 commit 3921a59

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

1.hello-world/10.read-video-pwa/service-worker.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
const dbrVersion = "9.6.31";
2-
const dbrCdn = `https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@${dbrVersion}/dist/`;
1+
const dbrCdn = `https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@9.6.31/dist/`;
2+
const dbrVersion = dbrCdn.slice(dbrCdn.search(/(?<=dynamsoft-javascript-barcode@)./), dbrCdn.search(/\/dist/));
33

44
// Files to cache
55
const cacheName = 'helloworld-pwa';

0 commit comments

Comments
 (0)