Reputation: 771
I'm making an electron app and have removed the title bar to make my own, using HTML and ipc-sends to the main.js
I have successfully been able to maximize, minimize and close the app, but I wonder - once maximized, what is the electron-function that calls the "back to window" event that a normal maximize button switches to once the window is full screen?
Upvotes: 1
Views: 686
Reputation: 1779
The function is BrowserWindow.unmaximize.
There's also an unmaximize event, and you can use isMaximized to check whether the window is currently maximized.
Upvotes: 1