aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--site/content/docs/5.0/examples/cheatsheet/cheatsheet.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/site/content/docs/5.0/examples/cheatsheet/cheatsheet.js b/site/content/docs/5.0/examples/cheatsheet/cheatsheet.js
index bafea8e92..541cf9350 100644
--- a/site/content/docs/5.0/examples/cheatsheet/cheatsheet.js
+++ b/site/content/docs/5.0/examples/cheatsheet/cheatsheet.js
@@ -28,8 +28,8 @@
// Disable empty links
document.querySelectorAll('[href="#"]')
.forEach(function (link) {
- link.addEventListener('click', function (e) {
- e.preventDefault()
+ link.addEventListener('click', function (event) {
+ event.preventDefault()
})
})