[Fix] Yunohost Overlay - Appear/Desappear bug

This commit is contained in:
unknown 2021-05-11 23:23:50 +04:00
parent d0c8604fad
commit bf74cc12a5

View file

@ -266,6 +266,7 @@ function init_portal_button_and_overlay()
portalOverlay.src = "/yunohost/sso/portal.html";
portalOverlay.setAttribute("id","ynh-overlay");
portalOverlay.setAttribute("style","visibility: hidden;"); // make sure the overlay is invisible already when loading it
portalOverlay.setAttribute("class","ynh-fadeOut"); // set overlay as masked when loading it
document.body.insertBefore(portalOverlay, null);
// Inject portal button