Do not display top bar if there is no event

This commit is contained in:
Helen Chong 2024-04-18 16:00:33 +08:00
parent dc6308d4ba
commit 151fdbd6d5
1 changed files with 2 additions and 0 deletions

View File

@ -46,6 +46,8 @@
headerImgEl.classList.add(getBanner(todayEvent));
headerTopBarEl.innerHTML = getBlurbHtml(todayEvent);
}
} else {
headerTopBarEl.style.display = 'none';
}
function getTodayEvent() {