Fix broken hamburger menu

This commit is contained in:
Sparky 2019-01-19 12:24:10 -05:00
parent d090ac8d72
commit 036cf6ef95

View File

@ -104,9 +104,7 @@ define(["dom", "layoutManager", "inputManager", "connectionManager", "events", "
} }
function bindMenuEvents() { function bindMenuEvents() {
var mainDrawerButton = document.querySelector(".mainDrawerButton"); if (mainDrawerButton = document.querySelector(".mainDrawerButton")) {
if (mainDrawerButton) {
mainDrawerButton.addEventListener("click", toggleMainDrawer); mainDrawerButton.addEventListener("click", toggleMainDrawer);
} }