fix check to remove class from null element (#12488)
This commit is contained in:
parent
9a92945609
commit
6a660776fa
1 changed files with 1 additions and 1 deletions
|
|
@ -115,7 +115,7 @@ var instantClick
|
|||
function changePage(title, body, newUrl, scrollY, pop) {
|
||||
var pageContentDiv = document.getElementById("page-content");
|
||||
var memberMenuButton = document.getElementById("member-menu-button")
|
||||
if (!memberMenuButton) {
|
||||
if (memberMenuButton) {
|
||||
memberMenuButton.classList.remove('showing')
|
||||
}
|
||||
document.getElementsByTagName("BODY")[0].replaceChild(body, pageContentDiv)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue