We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c8f9bd4 commit b5877acCopy full SHA for b5877ac
1 file changed
src/main/js/pages/manage-jenkins/index.js
@@ -22,7 +22,9 @@ searchBarInput.suggestions = function () {
22
23
document.addEventListener("DOMContentLoaded", function () {
24
const messagesContainer = document.querySelector(".manage-messages");
25
- if (!messagesContainer) return;
+ if (!messagesContainer) {
26
+ return;
27
+ }
28
29
const updateLastVisibleMessageMargin = () => {
30
const messageDivs = Array.from(messagesContainer.children).filter(
@@ -51,7 +53,9 @@ document.addEventListener("DOMContentLoaded", function () {
51
53
52
54
let rafId = null;
55
const scheduleUpdate = () => {
- if (rafId !== null) return;
56
+ if (rafId !== null) {
57
58
59
rafId = requestAnimationFrame(() => {
60
rafId = null;
61
updateLastVisibleMessageMargin();
0 commit comments