Only show the window when the content is ready.
Save the window geometry state on every change.
Use this rather than creating BrowserWindow
instances from scratch, since some security parameters need to be set, this method will do it.
"Gently" close all windows, application will not stop if a beforeunload
handler returns false
.
Start the NodeJS backend server.
Running server's port promise.
Catch certain keybindings to prevent reloading the window using keyboard shortcuts.