Skip to content

Commit

Permalink
consistancy in notfications.
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Fraser committed Oct 9, 2018
1 parent 1a67915 commit ff78a5d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ function createWindow () {
}
})
mainWindow.on('closed', () => { mainWindow = null })
mainWindow.setMenu(null)
}

function globalShortcuts () {
Expand Down Expand Up @@ -202,8 +203,8 @@ ipcMain.on('player', (event, object) => {
if (JSON.stringify(object) !== status && object.title !== '' && object.artist !== '') {
if (isWindows) {
tray.displayBalloon({
title: object.title,
content: object.artist.replace(/\n/g, ''),
title: `${app.getName()}${object.status}`,
content: `${object.title}\n${object.artist}`,
icon: path.join(__dirname, 'assets/musictube.png')
})
} else {
Expand Down

0 comments on commit ff78a5d

Please sign in to comment.