Skip to content

Commit 01aa820

Browse files
committed
Update 2.read-an-image.html
1 parent d40de0a commit 01aa820

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

1.hello-world/2.read-an-image.html

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,6 @@ <h1 style="font-size: 1.5em;">Read Barcode from Images</h1>
3131
}
3232
</style>
3333
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@9.6.10/dist/dbr.js"></script>
34-
<script>
35-
if(location.protocol === "file:") {
36-
const message = `The page is opened via file:// and "BarcodeScanner" may not work properly. Please open the page via https:// or host it on "http://localhost/".`;
37-
console.warn(message);
38-
alert(message);
39-
}
40-
</script>
4134
<script>
4235
/** LICENSE ALERT - README
4336
* To use the library, you need to first specify a license key using the API "license" as shown below.

0 commit comments

Comments
 (0)