diff options
Diffstat (limited to 'assets/js/ed.js')
| -rw-r--r-- | assets/js/ed.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/assets/js/ed.js b/assets/js/ed.js index 60c45ee..4bf71c2 100644 --- a/assets/js/ed.js +++ b/assets/js/ed.js @@ -29,13 +29,11 @@ function setupHypothes() { const hypothesisLink = document.querySelector('#hypothesis-link'); if (hypothesisLink !== null) { - hypothesisContainer.addEventListener('click', (e) => { - e.preventDefault(); - }); + hypothesisContainer.addEventListener('click', e => e.preventDefault()); } } -document.addEventListener('DOMContentLoaded', function () { +document.addEventListener('DOMContentLoaded', () => { setupBackToTop(); setupHypothes(); }); |
