Add support for banner expiration

This commit is contained in:
Pierre HUBERT 2021-12-30 10:37:03 +01:00
parent 1cb1ec2b3f
commit 0be6d33b34

View File

@ -66,6 +66,9 @@ const MenubarBanner = {
link.target = "_blank"; link.target = "_blank";
} }
if(banner.expire)
setTimeout(() => rootEl.remove(), (banner.expire - ComunicDate.time()) * 1000)
return rootEl; return rootEl;
} }
}; };