diff --git a/index.js b/index.js index ebab1c37..d5cb15db 100644 --- a/index.js +++ b/index.js @@ -183,7 +183,7 @@ app.on("ready", () => { } // Optimized for Mac OS X - if (process.platform === "darwin") { + if (is.macOS()) { if (!isAppVisible()) { app.dock.hide(); }