Skip to content

Commit

Permalink
Set window icon.
Browse files Browse the repository at this point in the history
  • Loading branch information
airycanon committed Dec 15, 2017
1 parent ec7086f commit 0fceefa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,7 @@ let trayMenu = [
let avatarPath = tmp.dirSync();
let avatarCache = {};
let avatarPlaceholder = `${__dirname}/src/assets/images/user-fallback.png`;
const icon = `${__dirname}/src/assets/images/dock.png`;

async function getIcon(cookies, userid, src) {
var cached = avatarCache[userid];
Expand Down Expand Up @@ -498,6 +499,7 @@ const createMainWindow = () => {
scrollBounce: true
},
frame: !isWin,
icon
});

mainWindow.setSize(350, 460);
Expand Down Expand Up @@ -705,7 +707,7 @@ const createMainWindow = () => {
};

app.setName(pkg.name);
app.dock && app.dock.setIcon(`${__dirname}/src/assets/images/dock.png`);
app.dock && app.dock.setIcon(icon);

app.on('ready', createMainWindow);
app.on('before-quit', () => {
Expand Down

0 comments on commit 0fceefa

Please sign in to comment.