mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -06:00
Electron-249 - Updated API work flow
This commit is contained in:
committed by
kiranniranjan
parent
92076ce9c7
commit
ab6a4fdc6a
@@ -13,6 +13,7 @@ const activityDetection = require('./activityDetection');
|
||||
const badgeCount = require('./badgeCount.js');
|
||||
const protocolHandler = require('./protocolHandler');
|
||||
const configureNotification = require('./notify/settings/configure-notification-position');
|
||||
const { bringToFront } = require('./bringToFront.js');
|
||||
|
||||
const apiEnums = require('./enums/api.js');
|
||||
const apiCmds = apiEnums.cmds;
|
||||
@@ -82,6 +83,11 @@ electron.ipcMain.on(apiName, (event, arg) => {
|
||||
}
|
||||
|
||||
if (arg.cmd === apiCmds.activate && typeof arg.windowName === 'string') {
|
||||
// validates the user bring to front config and activates the wrapper
|
||||
if (typeof arg.reason === 'string' && arg.reason === 'bringToFront') {
|
||||
bringToFront(arg.windowName);
|
||||
return;
|
||||
}
|
||||
windowMgr.activate(arg.windowName);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user