From 03a091fdd64ead638c31b760c8751eca7b6630b8 Mon Sep 17 00:00:00 2001 From: Evelina Berg Date: Thu, 4 Jul 2024 19:27:27 +0200 Subject: [PATCH] Replace alert in canvas_api_tutorial --- .../canvas_api/tutorial/applying_styles_and_colors/index.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/files/en-us/web/api/canvas_api/tutorial/applying_styles_and_colors/index.md b/files/en-us/web/api/canvas_api/tutorial/applying_styles_and_colors/index.md index a292ea3a4ab7b0b..508f7725ad0a3cf 100644 --- a/files/en-us/web/api/canvas_api/tutorial/applying_styles_and_colors/index.md +++ b/files/en-us/web/api/canvas_api/tutorial/applying_styles_and_colors/index.md @@ -394,8 +394,6 @@ function draw() { // check input if (document.getElementById("miterLimit").value.match(/\d+(\.\d+)?/)) { ctx.miterLimit = parseFloat(document.getElementById("miterLimit").value); - } else { - alert("Value must be a positive number"); } // Draw lines @@ -421,7 +419,7 @@ function draw() { clicking the redraw button.

- +