Skip to content

Commit

Permalink
Prevent setIcon on Darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
linux-man committed May 24, 2017
1 parent 5c8b236 commit 6ef5b95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ app.on("ready", () => {
});

app.on("browser-window-created", (e, win) => {
win.setIcon(path.join(__dirname, "icons/icon.png"));
if(process.platform !== "darwin") win.setIcon(path.join(__dirname, "icons/icon.png"));
if(win.getTitle() == "reveal.js - Notes") {
if(multiDisplay() && mainWindow.isFullScreen()){
if(mainWindow.getBounds().x > 0) win.setBounds(primaryDisplay());
Expand Down

0 comments on commit 6ef5b95

Please sign in to comment.