From f976f95b502cb6f16efcc2541d954df2d747f6ca Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Sun, 25 Sep 2022 16:22:22 +0200 Subject: Small code cleanup --- assets/js/ed.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'assets/js/ed.js') diff --git a/assets/js/ed.js b/assets/js/ed.js index 4bf71c2..b4ba4d6 100644 --- a/assets/js/ed.js +++ b/assets/js/ed.js @@ -17,7 +17,7 @@ function setupBackToTop() { function setupHypothes() { const hypothesisContainer = document.querySelector('.hypothesis-container'); if (hypothesisContainer !== null) { - hypothesisContainer.addEventListener('click', (e) => { + hypothesisContainer.addEventListener('click', e => { e.preventDefault(); let script = document.createElement('script'); -- cgit v1.2.3