From e65bc09e7a840ef3ada1c4b6725bbeb551e61ebc Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Tue, 8 Jun 2021 12:42:45 -0700 Subject: [PATCH] Linter fixes --- bookwyrm/static/js/bookwyrm.js | 1 + bookwyrm/static/js/localstorage.js | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/bookwyrm/static/js/bookwyrm.js b/bookwyrm/static/js/bookwyrm.js index 00dda1ab..e43ed134 100644 --- a/bookwyrm/static/js/bookwyrm.js +++ b/bookwyrm/static/js/bookwyrm.js @@ -183,6 +183,7 @@ let BookWyrm = new class { if (focus) { this.toggleFocus(focus); } + return false; } diff --git a/bookwyrm/static/js/localstorage.js b/bookwyrm/static/js/localstorage.js index 05955779..b485ed7e 100644 --- a/bookwyrm/static/js/localstorage.js +++ b/bookwyrm/static/js/localstorage.js @@ -17,7 +17,7 @@ let LocalStorageTools = new class { * @return {undefined} */ updateDisplay(event) { - // used in set reading goal + // Used in set reading goal let key = event.target.dataset.id; let value = event.target.dataset.value; @@ -34,10 +34,10 @@ let LocalStorageTools = new class { * @return {undefined} */ setDisplay(node) { - // used in set reading goal + // Used in set reading goal let key = node.dataset.hide; let value = window.localStorage.getItem(key); BookWyrm.addRemoveClass(node, 'is-hidden', value); } -} +}();