aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--desktop/main.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/desktop/main.js b/desktop/main.js
index abc6c3a..4c45d6f 100644
--- a/desktop/main.js
+++ b/desktop/main.js
@@ -16,9 +16,9 @@ app.on('ready', () => {
backgroundColor: '#000',
resizable: true,
icon: __dirname + '/icon.ico',
- frame: process.platform === 'win32',
- skipTaskbar: process.platform !== 'win32',
- autoHideMenuBar: process.platform !== 'win32'
+ frame: process.platform !== 'darwin',
+ skipTaskbar: process.platform === 'darwin',
+ autoHideMenuBar: process.platform === 'darwin'
})
app.win.loadURL(`file://${__dirname}/sources/index.html`)
@@ -59,10 +59,10 @@ app.toggleFullscreen = function () {
}
app.toggleVisible = function () {
- if (process.platform === 'win32') {
- if (!app.win.isMinimized()) { app.win.minimize() } else { app.win.restore() }
- } else {
+ if (process.platform === 'darwin') {
if (isShown && !app.win.isFullScreen()) { app.win.hide() } else { app.win.show() }
+ } else {
+ if (!app.win.isMinimized()) { app.win.minimize() } else { app.win.restore() }
}
}