From 2c64b21dcfab7b81ce235d4ea3aeaf1087981279 Mon Sep 17 00:00:00 2001 From: alexbarnsley Date: Thu, 27 Jul 2023 12:56:02 +0000 Subject: [PATCH] style: resolve style guide violations --- resources/assets/js/modal.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/resources/assets/js/modal.js b/resources/assets/js/modal.js index 10ef1c21..2340e231 100644 --- a/resources/assets/js/modal.js +++ b/resources/assets/js/modal.js @@ -71,9 +71,12 @@ const Modal = { } else { disableBodyScroll(scrollable, settings); } - } + }; - window.addEventListener("resize", this.bodyResizeDisableScrollLockHandler); + window.addEventListener( + "resize", + this.bodyResizeDisableScrollLockHandler + ); } }, @@ -87,7 +90,10 @@ const Modal = { } if (this.bodyResizeDisableScrollLockHandler !== null) { - window.removeEventListener("resize", this.bodyResizeDisableScrollLockHandler); + window.removeEventListener( + "resize", + this.bodyResizeDisableScrollLockHandler + ); this.bodyResizeDisableScrollLockHandler = null; }