Created
February 10, 2017 23:41
-
-
Save Tobishua/6eaf2feb440938787cdc8bd18c88f390 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//source: https://blog.dcpos.ch/how-to-make-your-electron-app-sexy | |
var notif = new window.Notification('Album loaded!', { | |
body: obj.info.title, | |
silent: true // We'll play our own sound | |
}) | |
// If the user clicks in the Notifications Center, show the app | |
notif.onclick = function () { | |
ipcRenderer.send('focusWindow', 'main') | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment