This commit is contained in:
Martina 2020-09-14 21:14:11 -07:00
parent bb8cf6a2ea
commit 54386c7163

View File

@ -57,7 +57,7 @@ app.whenReady().then(() => {
bootServer();
createWindow();
app.on("activate", function() {
app.on("activate", function () {
// On macOS it's common to re-create a window in the app when the
// dock icon is clicked and there are no other windows open.
if (BrowserWindow.getAllWindows().length === 0) createWindow();
@ -67,7 +67,7 @@ app.whenReady().then(() => {
// Quit when all windows are closed, except on macOS. There, it's common
// for applications and their menu bar to stay active until the user quits
// explicitly with Cmd + Q.
app.on("window-all-closed", function() {
app.on("window-all-closed", function () {
if (process.platform !== "darwin") app.quit();
});