Closed CharellKing closed 8 years ago
This is not related to photonkit. You may want to open an issue with Electron.
In ay case, I gave it a try and it seems to work fine. You should not call main_window.maximize();
from the event handler. There's no need for it.
main_window.on('maximize', function() {
console.log("I am maximized.");
});
Also, console.log
is printed on the terminal window and not in Chrome developer tool.
I create a 'browser-window'; it not emit 'maximize' event when I click 'maximize' button; To my surprised, these events('closed', 'minimize' etc) are ok.
this's my test code on max os x: