[Index] Simplify overlay detection
This commit is contained in:
parent
4280c4ca70
commit
4613182d4d
1 changed files with 1 additions and 3 deletions
|
@ -22,9 +22,7 @@ log('Init', 'Loaded config', oaConfig);
|
|||
|
||||
require('./cmdSwitches')();
|
||||
|
||||
const appMode = process.argv?.includes('--overlay-host') ? 'overlay-host' : 'app';
|
||||
|
||||
if (appMode === 'overlay-host') {
|
||||
if (process.argv?.includes('--overlay-host')) {
|
||||
const buildInfo = require('./utils/buildInfo');
|
||||
|
||||
if (buildInfo.newUpdater) {
|
||||
|
|
Loading…
Reference in a new issue