mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-12-27 17:31:36 -06:00
ELECTRON-593: support launching app through custom pod urls (#439)
This commit is contained in:
parent
1898c36508
commit
0d161727d8
12
js/main.js
12
js/main.js
@ -313,13 +313,11 @@ function setStartup(lStartup) {
|
||||
* and creates the main window
|
||||
*/
|
||||
function getUrlAndCreateMainWindow() {
|
||||
// for dev env allow passing url argument
|
||||
if (isDevEnv) {
|
||||
let url = getCmdLineArg(process.argv, '--url=', false);
|
||||
if (url) {
|
||||
windowMgr.createMainWindow(url.substr(6));
|
||||
return;
|
||||
}
|
||||
// allow passing url argument
|
||||
let url = getCmdLineArg(process.argv, '--url=', false);
|
||||
if (url) {
|
||||
windowMgr.createMainWindow(url.substr(6));
|
||||
return;
|
||||
}
|
||||
|
||||
getConfigField('url')
|
||||
|
Loading…
Reference in New Issue
Block a user