We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16aed07 commit b128021Copy full SHA for b128021
packages/react-devtools/app.js
@@ -9,6 +9,7 @@
9
10
const {app, BrowserWindow} = require('electron'); // Module to create native browser window.
11
const {join} = require('path');
12
+const os = require('os');
13
14
const argv = require('minimist')(process.argv.slice(2));
15
const projectRoots = argv._;
@@ -32,6 +33,11 @@ app.on('ready', function() {
32
33
},
34
});
35
36
+ // set dock icon for macos
37
+ if (os.platform() === 'darwin') {
38
+ app.dock.setIcon(join(__dirname, 'icons/icon128.png'));
39
+ }
40
+
41
// https://stackoverflow.com/questions/32402327/
42
mainWindow.webContents.on('new-window', function(event, url) {
43
event.preventDefault();
0 commit comments