Skip to content

Commit 8662ab8

Browse files
react-devtools: set icon on macos
1 parent 262ff7a commit 8662ab8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/react-devtools/app.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ app.on('ready', function() {
3232
},
3333
});
3434

35+
// set dock icon for macos
36+
if (process.platform === 'darwin') {
37+
app.dock.setIcon(join(__dirname, 'icons/icon128.png'));
38+
}
39+
3540
// https://stackoverflow.com/questions/32402327/
3641
mainWindow.webContents.on('new-window', function(event, url) {
3742
event.preventDefault();

0 commit comments

Comments
 (0)