diff --git a/assets/js/components/menuBar/banner.js b/assets/js/components/menuBar/banner.js index b875005c..30e39dd4 100644 --- a/assets/js/components/menuBar/banner.js +++ b/assets/js/components/menuBar/banner.js @@ -66,6 +66,9 @@ const MenubarBanner = { link.target = "_blank"; } + if(banner.expire) + setTimeout(() => rootEl.remove(), (banner.expire - ComunicDate.time()) * 1000) + return rootEl; } }; \ No newline at end of file