No not delegate launch to Flipper Launcher
Summary: ^ Reviewed By: aigoncharov Differential Revision: D50557385 fbshipit-source-id: d9571dda36520eae19f2d5fda4f52807f439a4e1
This commit is contained in:
committed by
Facebook GitHub Bot
parent
bf49924f0c
commit
da7917cefe
@@ -28,7 +28,6 @@ import fixPath from 'fix-path';
|
||||
import {exec} from 'child_process';
|
||||
import setup, {Config, configPath} from './setup';
|
||||
import isFB from './fb-stubs/isFB';
|
||||
import delegateToLauncher from './launcher';
|
||||
import yargs from 'yargs';
|
||||
import {promisify} from 'util';
|
||||
import process from 'process';
|
||||
@@ -174,14 +173,8 @@ app.on('ready', async () => {
|
||||
const config = await setup(argv);
|
||||
processConfig(config);
|
||||
|
||||
// If we delegate to the launcher, shut down this instance of the app.
|
||||
delegateToLauncher(argv)
|
||||
.then(async (hasLauncherInvoked: boolean) => {
|
||||
if (hasLauncherInvoked) {
|
||||
app.quit();
|
||||
return;
|
||||
}
|
||||
appReady = true;
|
||||
|
||||
app.commandLine.appendSwitch('scroll-bounce');
|
||||
configureSession();
|
||||
createWindow(config);
|
||||
@@ -224,8 +217,6 @@ app.on('ready', async () => {
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
.catch((e: any) => console.error('Error while delegating app launch', e));
|
||||
});
|
||||
|
||||
app.on('web-contents-created', (_event, contents) => {
|
||||
|
||||
Reference in New Issue
Block a user