1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 09:46:22 +00:00
Files
Boostnote/browser/main/lib/notify.js
Dick Choi 2cbe07b373 Finder
2016-08-14 01:34:32 +09:00

12 lines
293 B
JavaScript

const path = require('path')
function notify (title, options) {
if (process.platform === 'win32') {
options.icon = path.join('file://', global.__dirname, '../../resources/app.png')
options.silent = false
}
return new window.Notification(title, options)
}
export default notify