mirror of
https://github.com/YunoHost/SSOwat.git
synced 2024-09-03 20:06:27 +02:00
No idea what I'm doing, but this fixes the small blink issue introduced by 95ae060
This commit is contained in:
parent
295a870912
commit
a256762ae7
1 changed files with 1 additions and 2 deletions
|
@ -264,7 +264,6 @@ function init_portal_button_and_overlay()
|
|||
portalOverlay.setAttribute("id","ynh-overlay");
|
||||
portalOverlay.setAttribute("style","visibility: hidden;"); // make sure the overlay is invisible already when loading it
|
||||
document.body.insertBefore(portalOverlay, null);
|
||||
Element.addClass(portalOverlay, 'ynh-fadeOut');
|
||||
|
||||
// Inject portal button
|
||||
var portalButton = document.createElement('a');
|
||||
|
@ -283,7 +282,7 @@ function init_portal_button_and_overlay()
|
|||
Element.toggleClass(document.querySelector('html'), 'ynh-panel-active');
|
||||
Element.toggleClass(portalOverlay, 'ynh-active');
|
||||
|
||||
if (portalOverlay.classList.contains('ynh-active')) {
|
||||
if (Element.hasClass(portalOverlay, 'ynh-active')) {
|
||||
meta_viewport.setAttribute('content', meta_viewport_content);
|
||||
Element.addClass(portalOverlay, 'ynh-fadeIn');
|
||||
Element.removeClass(portalOverlay, 'ynh-fadeOut');
|
||||
|
|
Loading…
Add table
Reference in a new issue