title: Electron/Javascript: Detect when window is un/maximized
body: <p>I am creating an electron application with a custom window bar in place of the default Windows one. I need to know when the window is maximized or un-maximized in order to change the icon on the window bar to reflect the window's state.</p>