File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,13 +12,17 @@ import dataStore from 'boost/dataStore'
1212
1313const electron = require ( 'electron' )
1414const { remote, clipboard, ipcRenderer } = electron
15+ const path = require ( 'path' )
1516
1617function hideFinder ( ) {
1718 ipcRenderer . send ( 'hide-finder' )
1819}
1920
20- function notify ( ...args ) {
21- return new window . Notification ( ...args )
21+ function notify ( title , options ) {
22+ if ( process . platform === 'win32' ) {
23+ options . icon = path . join ( 'file://' , global . __dirname , '../../resources/favicon-230x230.png' )
24+ }
25+ return new window . Notification ( title , options )
2226}
2327
2428require ( '../styles/finder/index.styl' )
Original file line number Diff line number Diff line change @@ -13,14 +13,19 @@ import Tutorial from 'boost/components/modal/Tutorial'
1313import activityRecord from 'boost/activityRecord'
1414const electron = require ( 'electron' )
1515const ipc = electron . ipcRenderer
16+ const path = require ( 'path' )
1617
1718activityRecord . init ( )
1819window . addEventListener ( 'online' , function ( ) {
1920 ipc . send ( 'check-update' , 'check-update' )
2021} )
2122
22- function notify ( ...args ) {
23- return new window . Notification ( ...args )
23+ function notify ( title , options ) {
24+ if ( process . platform === 'win32' ) {
25+ options . icon = path . join ( 'file://' , global . __dirname , '../../resources/favicon-230x230.png' )
26+ }
27+ console . log ( options )
28+ return new window . Notification ( title , options )
2429}
2530
2631ipc . on ( 'notify' , function ( e , payload ) {
You can’t perform that action at this time.
0 commit comments