Skip to content

Commit

Permalink
Add on load event listener to code example to match text below (#28183)
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyshibitov authored Jul 26, 2023
1 parent 0fe8d7e commit 49d334f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ Here is a minimalistic template, which we'll be using as a starting point for la
const ctx = canvas.getContext("2d");
}
}
draw();
window.addEventListener("load", draw);
</script>
</body>
</html>
Expand Down

0 comments on commit 49d334f

Please sign in to comment.