From dc8e5d66a2dcb43fb02df1b687ec274df5ec1e76 Mon Sep 17 00:00:00 2001 From: Anthony Shibitov Date: Tue, 25 Jul 2023 22:08:07 -0400 Subject: [PATCH] Update index.md Add load event listener to window to match the descriptive text below --- files/en-us/web/api/canvas_api/tutorial/basic_usage/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/en-us/web/api/canvas_api/tutorial/basic_usage/index.md b/files/en-us/web/api/canvas_api/tutorial/basic_usage/index.md index 07e2b3b43b16d95..2829a91cdf75273 100644 --- a/files/en-us/web/api/canvas_api/tutorial/basic_usage/index.md +++ b/files/en-us/web/api/canvas_api/tutorial/basic_usage/index.md @@ -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);