mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 17:56:25 +00:00
add silent option to notification
This commit is contained in:
@@ -21,6 +21,7 @@ function hideFinder () {
|
|||||||
function notify (title, options) {
|
function notify (title, options) {
|
||||||
if (process.platform === 'win32') {
|
if (process.platform === 'win32') {
|
||||||
options.icon = path.join('file://', global.__dirname, '../../resources/favicon-230x230.png')
|
options.icon = path.join('file://', global.__dirname, '../../resources/favicon-230x230.png')
|
||||||
|
options.silent = false
|
||||||
}
|
}
|
||||||
return new window.Notification(title, options)
|
return new window.Notification(title, options)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ window.addEventListener('online', function () {
|
|||||||
function notify (title, options) {
|
function notify (title, options) {
|
||||||
if (process.platform === 'win32') {
|
if (process.platform === 'win32') {
|
||||||
options.icon = path.join('file://', global.__dirname, '../../resources/favicon-230x230.png')
|
options.icon = path.join('file://', global.__dirname, '../../resources/favicon-230x230.png')
|
||||||
|
options.silent = false
|
||||||
}
|
}
|
||||||
console.log(options)
|
console.log(options)
|
||||||
return new window.Notification(title, options)
|
return new window.Notification(title, options)
|
||||||
|
|||||||
Reference in New Issue
Block a user