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 5962fe0 commit 22b0cb8Copy full SHA for 22b0cb8
1.hello-world/2.read-an-image.html
@@ -49,7 +49,6 @@ <h2>Read An Existing Image</h2>
49
50
// reader for decoding picture
51
let pReader = null;
52
- // decode input picture
53
window.onload = async function () {
54
// Load the library on page load to speed things up.
55
try {
@@ -78,6 +77,7 @@ <h2>Read An Existing Image</h2>
78
77
}
79
fr.readAsDataURL(file);
80
+ // Decode the file
81
let results = await reader.decode(file);
82
let newElements = [];
83
newElements.push(createAnSpan(file.name + ": ", "bigger"));
@@ -198,4 +198,4 @@ <h2>Read An Existing Image</h2>
198
199
</style>
200
201
-</html>
+</html>
0 commit comments