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 7b65029 commit 2ec6b39Copy full SHA for 2ec6b39
1.hello-world/12.read-video-es6.html
@@ -30,7 +30,7 @@ <h1 style="font-size: 1.5em;">Hello World for ES6</h1>
30
BarcodeReader.engineResourcePath = "https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@9.0.1/dist/";
31
32
let pScanner = null;
33
- window.onload = async () => {
+ (async () => {
34
try {
35
const scanner = await (pScanner = pScanner || BarcodeScanner.createInstance());
36
/*
@@ -57,8 +57,8 @@ <h1 style="font-size: 1.5em;">Hello World for ES6</h1>
57
alert(ex.message);
58
throw ex;
59
}
60
- };
+ })();
61
</script>
62
</body>
63
64
-</html>
+</html>
0 commit comments