Created
June 7, 2019 21:41
-
-
Save MarshallOfSound/193b914cbef773b452d870e285820576 to your computer and use it in GitHub Desktop.
Electron Fiddle Gist
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
<!-- Empty --> |
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
const {app, Notification} = require('electron') | |
function onReady () { | |
const n = new Notification({ | |
title: 'Fake Notification', | |
body: 'This is a very fake message', | |
closeButtonText: 'Close', | |
hasReply: true | |
}) | |
n.show() | |
} | |
app.on('ready', onReady) |
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
// Empty |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment