diff --git a/src/scripts/librarymenu.js b/src/scripts/librarymenu.js index b3d26edafa..e3adf32f66 100644 --- a/src/scripts/librarymenu.js +++ b/src/scripts/librarymenu.js @@ -104,9 +104,7 @@ define(["dom", "layoutManager", "inputManager", "connectionManager", "events", " } function bindMenuEvents() { - var mainDrawerButton = document.querySelector(".mainDrawerButton"); - - if (mainDrawerButton) { + if (mainDrawerButton = document.querySelector(".mainDrawerButton")) { mainDrawerButton.addEventListener("click", toggleMainDrawer); }