ELECTRON-593: support launching app through custom pod urls (#439)

This commit is contained in:
Vishwas Shashidhar 2018-07-20 16:31:18 +05:30 committed by GitHub
parent 1898c36508
commit 0d161727d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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')