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; }