Skip to content
This repository was archived by the owner on Oct 18, 2024. It is now read-only.

Commit 6d9ed25

Browse files
committed
Only set the dock icon on macOS
1 parent cc89413 commit 6d9ed25

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class NativePHP {
7575
bootstrapApp(app) {
7676
app.whenReady().then(() => __awaiter(this, void 0, void 0, function* () {
7777
var _a;
78-
if (process.env.NODE_ENV === 'development') {
78+
if (process.platform === 'darwin' && process.env.NODE_ENV === 'development') {
7979
app.dock.setIcon(state_1.default.icon);
8080
}
8181
app.on('browser-window-created', (_, window) => {

src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ class NativePHP {
7777
private bootstrapApp(app: Electron.CrossProcessExports.App) {
7878
app.whenReady().then(async () => {
7979

80-
if (process.env.NODE_ENV === 'development') {
80+
// Only run this on macOS
81+
if (process.platform === 'darwin' && process.env.NODE_ENV === 'development') {
8182
app.dock.setIcon(state.icon)
8283
}
8384

0 commit comments

Comments
 (0)