mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-12-29 02:11:28 -06:00
notifications are not showing (#132)
This commit is contained in:
parent
05cde10299
commit
c823a7616b
@ -8,8 +8,6 @@
|
|||||||
//
|
//
|
||||||
const electron = require('electron');
|
const electron = require('electron');
|
||||||
const ipc = electron.ipcRenderer;
|
const ipc = electron.ipcRenderer;
|
||||||
const log = require('../log.js');
|
|
||||||
const logLevels = require('../enums/logLevels.js');
|
|
||||||
|
|
||||||
function setStyle(config) {
|
function setStyle(config) {
|
||||||
// Style it
|
// Style it
|
||||||
@ -55,8 +53,10 @@ function setContents(event, notificationObj) {
|
|||||||
audio.play()
|
audio.play()
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
log.send(logLevels.ERROR, 'electron-notify: ERROR could not find sound file: '
|
/* eslint-disable no-console */
|
||||||
|
console.error('electron-notify: ERROR could not find sound file: '
|
||||||
+ notificationObj.sound.replace('file://', ''), e, e.stack);
|
+ notificationObj.sound.replace('file://', ''), e, e.stack);
|
||||||
|
/* eslint-enable no-console */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user