We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13e37d1 commit 3921a59Copy full SHA for 3921a59
1.hello-world/10.read-video-pwa/service-worker.js
@@ -1,5 +1,5 @@
1
-const dbrVersion = "9.6.31";
2
-const dbrCdn = `https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@${dbrVersion}/dist/`;
+const dbrCdn = `https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@9.6.31/dist/`;
+const dbrVersion = dbrCdn.slice(dbrCdn.search(/(?<=dynamsoft-javascript-barcode@)./), dbrCdn.search(/\/dist/));
3
4
// Files to cache
5
const cacheName = 'helloworld-pwa';
0 commit comments