Remove test code
This commit is contained in:
parent
5fa2831756
commit
9d4588a5d0
1 changed files with 1 additions and 11 deletions
|
@ -1,4 +1,4 @@
|
||||||
const {app, BrowserWindow, Notification} = require('electron')
|
const {app, BrowserWindow} = require('electron')
|
||||||
const path = require('path')
|
const path = require('path')
|
||||||
|
|
||||||
let mainWindow = null
|
let mainWindow = null
|
||||||
|
@ -27,15 +27,5 @@ exports.load = (appUrl) => {
|
||||||
mainWindow = new BrowserWindow(options)
|
mainWindow = new BrowserWindow(options)
|
||||||
mainWindow.loadURL(appUrl)
|
mainWindow.loadURL(appUrl)
|
||||||
mainWindow.focus()
|
mainWindow.focus()
|
||||||
|
|
||||||
const n = new Notification({
|
|
||||||
title: 'Foo',
|
|
||||||
body: 'Bar',
|
|
||||||
hasReply: true,
|
|
||||||
replyPlaceholder: 'foo'
|
|
||||||
})
|
|
||||||
n.on('reply', (...args) => console.log('reply', ...args))
|
|
||||||
n.on('click', (...args) => console.log('click', ...args))
|
|
||||||
n.show()
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue