Skip to content

Commit c19268d

Browse files
committed
Update service-worker.js
1 parent dc093f4 commit c19268d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
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/));
2+
const dbrVersion = dbrCdn.match(/(?<=dynamsoft-javascript-barcode@).+(?=\/dist)/)[0];
33

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

0 commit comments

Comments
 (0)