1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

add authentication check for popup & add notification(clipboarded)

This commit is contained in:
Rokt33r
2015-06-15 15:47:24 +09:00
parent 6aa32d49fc
commit a3ae5f02dd
7 changed files with 34 additions and 35 deletions

14
main.js
View File

@@ -13,8 +13,9 @@ var mainWindow = null
// })
var clipboard = require('clipboard')
var Tray = require('tray')
var notifier = require('node-notifier')
var appIcon = null
app.on('ready', function () {
@@ -37,7 +38,8 @@ app.on('ready', function () {
show: false,
frame: false,
'web-preferences': {
'overlay-scrollbars': true
'overlay-scrollbars': true,
'skip-taskbar': true
}
})
@@ -70,8 +72,16 @@ app.on('ready', function () {
ipc.on('hidePopUp', function () {
hidePopUp()
})
ipc.on('writeCode', function (e, code) {
clipboard.writeText(code)
notifier.notify({
title: 'Write on clipboard!',
message: 'Ready to paste',
wait: false
}, function (err, res) {
})
hidePopUp()
})