SDA-2824 Make theme optional and set default value

This commit is contained in:
psjostrom 2021-01-15 11:48:39 +01:00
parent 5c5462592d
commit 40f01018ab

View File

@ -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: