From 8c19b2e314bf81ef178415f9ff633db733490990 Mon Sep 17 00:00:00 2001 From: Tac Tacelosky Date: Mon, 25 Mar 2024 06:51:12 -0600 Subject: [PATCH] replace jquery example with vanilla javascript --- docs/Tutorial/Best-Practices.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/Tutorial/Best-Practices.md b/docs/Tutorial/Best-Practices.md index bc888b54..0fe8e84a 100644 --- a/docs/Tutorial/Best-Practices.md +++ b/docs/Tutorial/Best-Practices.md @@ -94,7 +94,7 @@ But on an event handler or other root-level scope, always catch! Why?! Because y ```javascript somePromiseReturningFunc().catch((error) => { - $('#appErrorLabel').text(error); + document.getElementById('appErrorLabel').innerText = error.toString(); console.error(error + ''); }); ```