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