From 193c5618158fc4a87d760aa149a4541836097589 Mon Sep 17 00:00:00 2001 From: Samuel Attard Date: Tue, 23 May 2017 02:19:03 +1000 Subject: [PATCH] Remove sample notification code --- default_app/default_app.js | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/default_app/default_app.js b/default_app/default_app.js index afff67669ee5..2a3ce3a85ec1 100644 --- a/default_app/default_app.js +++ b/default_app/default_app.js @@ -1,4 +1,4 @@ -const {app, BrowserWindow, Notification} = require('electron') +const {app, BrowserWindow} = require('electron') const path = require('path') let mainWindow = null @@ -27,19 +27,5 @@ exports.load = (appUrl) => { mainWindow = new BrowserWindow(options) mainWindow.loadURL(appUrl) mainWindow.focus() - - const n = new Notification({ - title: 'Hello World', - body: 'This is the long and complicated body for this notification that just goes on and on and on and never really seems to stop', - silent: true, - icon: path.resolve('C:\\Users\\Samuel\\Downloads\\icon.png'), - hasReply: true, - replyPlaceholder: 'Type Here!!' - }) - n.on('show', () => console.log('showed')) - n.on('click', () => console.info('clicked!!')) - n.on('reply', (e, reply) => console.log('Replied:', reply)) - - n.show() }) }