mirror of
				https://github.com/pierre42100/ComunicWeb
				synced 2025-11-04 12:14:12 +00:00 
			
		
		
		
	Add support for banner expiration
This commit is contained in:
		@@ -66,6 +66,9 @@ const MenubarBanner = {
 | 
			
		||||
            link.target = "_blank";
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        if(banner.expire)
 | 
			
		||||
            setTimeout(() => rootEl.remove(), (banner.expire - ComunicDate.time()) * 1000)
 | 
			
		||||
 | 
			
		||||
        return rootEl;
 | 
			
		||||
    }
 | 
			
		||||
};
 | 
			
		||||
		Reference in New Issue
	
	Block a user