Skip to content

Commit 7b65029

Browse files
authored
Update 1.hello-world.html
1 parent 0a4be07 commit 7b65029

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

1.hello-world/1.hello-world.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
* LICENSE ALERT - THE END
2727
*/
2828

29-
window.onload = async function() {
29+
(async function() {
3030
try {
3131
const scanner = await Dynamsoft.DBR.BarcodeScanner.createInstance();
3232
/**
@@ -57,7 +57,7 @@
5757
alert(ex);
5858
throw ex;
5959
}
60-
};
60+
})();
6161
</script>
6262
</body>
6363

0 commit comments

Comments
 (0)