Skip to content

Commit

Permalink
style: resolve style guide violations
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbarnsley authored and github-actions[bot] committed Jul 27, 2023
1 parent 2078b61 commit 2c64b21
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions resources/assets/js/modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,12 @@ const Modal = {
} else {
disableBodyScroll(scrollable, settings);
}
}
};

window.addEventListener("resize", this.bodyResizeDisableScrollLockHandler);
window.addEventListener(
"resize",
this.bodyResizeDisableScrollLockHandler
);
}
},

Expand All @@ -87,7 +90,10 @@ const Modal = {
}

if (this.bodyResizeDisableScrollLockHandler !== null) {
window.removeEventListener("resize", this.bodyResizeDisableScrollLockHandler);
window.removeEventListener(
"resize",
this.bodyResizeDisableScrollLockHandler
);

this.bodyResizeDisableScrollLockHandler = null;
}
Expand Down

0 comments on commit 2c64b21

Please sign in to comment.