[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')();
|
require('./cmdSwitches')();
|
||||||
|
|
||||||
const appMode = process.argv?.includes('--overlay-host') ? 'overlay-host' : 'app';
|
if (process.argv?.includes('--overlay-host')) {
|
||||||
|
|
||||||
if (appMode === 'overlay-host') {
|
|
||||||
const buildInfo = require('./utils/buildInfo');
|
const buildInfo = require('./utils/buildInfo');
|
||||||
|
|
||||||
if (buildInfo.newUpdater) {
|
if (buildInfo.newUpdater) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue