Skip to content

Commit

Permalink
replace jquery example with vanilla javascript
Browse files Browse the repository at this point in the history
  • Loading branch information
tacman authored Mar 25, 2024
1 parent 3b74709 commit 8c19b2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/Tutorial/Best-Practices.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 + '');
});
```
Expand Down

0 comments on commit 8c19b2e

Please sign in to comment.