From 49ecd86afe37c367bfedd8b2064d464d8ee73eee Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Sun, 2 Jan 2022 07:01:11 -0800 Subject: [PATCH] Runs prettier --- bookwyrm/static/js/bookwyrm.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/bookwyrm/static/js/bookwyrm.js b/bookwyrm/static/js/bookwyrm.js index b3dfe2d64..cf3944b35 100644 --- a/bookwyrm/static/js/bookwyrm.js +++ b/bookwyrm/static/js/bookwyrm.js @@ -61,7 +61,9 @@ let BookWyrm = new (class { .querySelectorAll('input[type="file"]') .forEach(bookwyrm.disableIfTooLarge.bind(bookwyrm)); document.querySelectorAll("[data-copytext]").forEach(bookwyrm.copyText.bind(bookwyrm)); - document.querySelectorAll(".modal.is-active").forEach(bookwyrm.handleActiveModal.bind(bookwyrm)); + document + .querySelectorAll(".modal.is-active") + .forEach(bookwyrm.handleActiveModal.bind(bookwyrm)); }); } @@ -418,7 +420,7 @@ let BookWyrm = new (class { * for information about using the modal. */ handleModalButton(event) { - const { handleFocusTrap } = this + const { handleFocusTrap } = this; const modalButton = event.currentTarget; const targetModalId = modalButton.dataset.modalOpen; const htmlElement = document.querySelector("html"); @@ -476,7 +478,7 @@ let BookWyrm = new (class { return; } - const { handleFocusTrap } = this + const { handleFocusTrap } = this; modalElement.getElementsByClassName("modal-card")[0].focus();