Skip to content

Commit 45f4b3b

Browse files
committed
Use is.macOS shortcut
1 parent 7c12344 commit 45f4b3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ app.on("ready", () => {
183183
}
184184

185185
// Optimized for Mac OS X
186-
if (process.platform === "darwin") {
186+
if (is.macOS()) {
187187
if (!isAppVisible()) {
188188
app.dock.hide();
189189
}

0 commit comments

Comments
 (0)