diff --git a/js/framework/ion-panel.js b/js/framework/ion-panel.js index 407cf886b4..dfffa083e2 100644 --- a/js/framework/ion-panel.js +++ b/js/framework/ion-panel.js @@ -31,14 +31,14 @@ // remove the panel-active css classes from each of the previously active panels for(x=0; x that there is a panel open - document.body.className += " " + PANEL_OPENED; + document.body.classList.add(PANEL_OPENED); } }, @@ -48,7 +48,7 @@ isPanelOpen = false; // remove from so that no panels should be open - document.body.className = document.body.className.replace(PANEL_OPENED, "").trim(); + document.body.classList.remove(PANEL_OPENED); } }