mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-12-28 09:51:06 -06:00
SDA-2824 Make theme optional and set default value
This commit is contained in:
parent
5c5462592d
commit
40f01018ab
@ -93,8 +93,9 @@ ipcMain.on(apiName.symphonyApi, async (event: Electron.IpcMainEvent, arg: IApiAr
|
||||
downloadHandler.setWindow(event.sender);
|
||||
break;
|
||||
case apiCmds.showNotificationSettings:
|
||||
if (typeof arg.windowName === 'string' && typeof arg.theme === 'string') {
|
||||
windowHandler.createNotificationSettingsWindow(arg.windowName, arg.theme);
|
||||
if (typeof arg.windowName === 'string') {
|
||||
const theme = arg.theme ? arg.theme : 'light';
|
||||
windowHandler.createNotificationSettingsWindow(arg.windowName, theme);
|
||||
}
|
||||
break;
|
||||
case apiCmds.sanitize:
|
||||
|
Loading…
Reference in New Issue
Block a user