Skip to content

Commit be3c519

Browse files
committed
add silent option to notification
1 parent 8776cb1 commit be3c519

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

browser/finder/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ function hideFinder () {
2121
function notify (title, options) {
2222
if (process.platform === 'win32') {
2323
options.icon = path.join('file://', global.__dirname, '../../resources/favicon-230x230.png')
24+
options.silent = false
2425
}
2526
return new window.Notification(title, options)
2627
}

browser/main/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ window.addEventListener('online', function () {
2323
function notify (title, options) {
2424
if (process.platform === 'win32') {
2525
options.icon = path.join('file://', global.__dirname, '../../resources/favicon-230x230.png')
26+
options.silent = false
2627
}
2728
console.log(options)
2829
return new window.Notification(title, options)

0 commit comments

Comments
 (0)