diff options
| author | Serghei Iakovlev <egrep@protonmail.ch> | 2022-07-31 01:43:39 +0200 |
|---|---|---|
| committer | Serghei Iakovlev <egrep@protonmail.ch> | 2022-07-31 01:43:39 +0200 |
| commit | 8f1338c9a14836e4ed8da5beb19d5006a32abf09 (patch) | |
| tree | 2f495c24b07f28388926063dca9c4ccefcd4cac6 /assets/js/ed.js | |
| parent | 3fe075e1369c580acb642f1fc5b8984c09d4cbe2 (diff) | |
| download | gohugo-theme-ed-8f1338c9a14836e4ed8da5beb19d5006a32abf09.tar.gz | |
Code cleanup
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(); }); |
