mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-24 13:09:20 +00:00
Add support for banner expiration
This commit is contained in:
parent
1cb1ec2b3f
commit
0be6d33b34
@ -66,6 +66,9 @@ const MenubarBanner = {
|
||||
link.target = "_blank";
|
||||
}
|
||||
|
||||
if(banner.expire)
|
||||
setTimeout(() => rootEl.remove(), (banner.expire - ComunicDate.time()) * 1000)
|
||||
|
||||
return rootEl;
|
||||
}
|
||||
};
|
Loading…
Reference in New Issue
Block a user