1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 09:46:22 +00:00

set Notification icon for Windows

This commit is contained in:
Dick Choi
2015-12-15 14:00:56 +09:00
parent 2a774a7bb6
commit 958469f526
2 changed files with 13 additions and 4 deletions

View File

@@ -12,13 +12,17 @@ import dataStore from 'boost/dataStore'
const electron = require('electron')
const { remote, clipboard, ipcRenderer } = electron
const path = require('path')
function hideFinder () {
ipcRenderer.send('hide-finder')
}
function notify (...args) {
return new window.Notification(...args)
function notify (title, options) {
if (process.platform === 'win32') {
options.icon = path.join('file://', global.__dirname, '../../resources/favicon-230x230.png')
}
return new window.Notification(title, options)
}
require('../styles/finder/index.styl')