Skip to content

Commit 22b0cb8

Browse files
Update 2.read-an-image.html
fixed wrong comment
1 parent 5962fe0 commit 22b0cb8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ <h2>Read An Existing Image</h2>
4949

5050
// reader for decoding picture
5151
let pReader = null;
52-
// decode input picture
5352
window.onload = async function () {
5453
// Load the library on page load to speed things up.
5554
try {
@@ -78,6 +77,7 @@ <h2>Read An Existing Image</h2>
7877
}
7978
fr.readAsDataURL(file);
8079
}
80+
// Decode the file
8181
let results = await reader.decode(file);
8282
let newElements = [];
8383
newElements.push(createAnSpan(file.name + ": ", "bigger"));
@@ -198,4 +198,4 @@ <h2>Read An Existing Image</h2>
198198
}
199199
</style>
200200

201-
</html>
201+
</html>

0 commit comments

Comments
 (0)