From c56fb16a19155894cf2741b0f420c220dd6b2e49 Mon Sep 17 00:00:00 2001 From: "Shahar \"Dawn\" Or" Date: Fri, 1 Nov 2024 08:32:18 +0700 Subject: [PATCH] fix non-loading calendar --- builder/src/components/calendar/snippet.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/builder/src/components/calendar/snippet.js b/builder/src/components/calendar/snippet.js index 3e10c44e..4a229250 100644 --- a/builder/src/components/calendar/snippet.js +++ b/builder/src/components/calendar/snippet.js @@ -1,5 +1,5 @@ /* global FullCalendar */ -(function initCalendar({ events, displayEventTime, selectors }) { +function initCalendar({ events, displayEventTime, selectors }) { window.addEventListener("DOMContentLoaded", () => { const styleElm = document.createElement("style"); @@ -71,4 +71,7 @@ calendar.render(); }); -}); +} + +// prettier-ignore +initCalendar