Set Application User Model ID and use Electron's notification

This commit is contained in:
Yuya Ochiai
2015-11-24 00:12:48 +09:00
parent 493287d2e6
commit 6f18b921b2
2 changed files with 8 additions and 4 deletions

View File

@@ -22,6 +22,9 @@ var mainWindow = null;
var trayIcon = null;
var willAppQuit = false;
// For toast notification on windows
app.setAppUserModelId('yuya-oc.electron-mattermost');
// Quit when all windows are closed.
app.on('window-all-closed', function() {
// On OS X it is common for applications and their menu bar