Skip to content
This repository has been archived by the owner on May 21, 2019. It is now read-only.

Commit

Permalink
Set dock icon for Mac. Fixes CI timeout errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
vlad-shatskyi committed May 25, 2017
1 parent 57258ac commit bb3fa2c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/Main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ app.on("ready", () => {
};
const browserWindow = new BrowserWindow(options);

browserWindow.setIcon(nativeImage.createFromPath("build/icon.png"));
if (app.dock) {
app.dock.setIcon(nativeImage.createFromPath("build/icon.png"));
} else {
browserWindow.setIcon(nativeImage.createFromPath("build/icon.png"));
}

if (process.env.REACT_EXTENSION_PATH) {
BrowserWindow.addDevToolsExtension(process.env.REACT_EXTENSION_PATH);
Expand Down

0 comments on commit bb3fa2c

Please sign in to comment.