[Index] Overlay experimenting (2)
This commit is contained in:
parent
ed88339cb8
commit
2c9bce5c26
15
src/index.js
15
src/index.js
|
@ -15,20 +15,7 @@ if (appMode === 'overlay-host') {
|
||||||
const buildInfo = require('./utils/buildInfo');
|
const buildInfo = require('./utils/buildInfo');
|
||||||
|
|
||||||
if (buildInfo.newUpdater) {
|
if (buildInfo.newUpdater) {
|
||||||
const updater = require('./updater/updater');
|
require('./utils/u2LoadModulePath')('discord_overlay2');
|
||||||
|
|
||||||
const {
|
|
||||||
NEW_UPDATE_ENDPOINT
|
|
||||||
} = require('./Constants');
|
|
||||||
|
|
||||||
if (!updater.tryInitUpdater(buildInfo, NEW_UPDATE_ENDPOINT)) {
|
|
||||||
throw new Error('Failed to initialize modules in overlay host.');
|
|
||||||
}
|
|
||||||
|
|
||||||
updater.getUpdater().startCurrentVersionSync({
|
|
||||||
allowObsoleteHost: true
|
|
||||||
});
|
|
||||||
// require('./utils/u2LoadModulePath')('discord_overlay2');
|
|
||||||
} else {
|
} else {
|
||||||
require('./updater/moduleUpdater').initPathsOnly(buildInfo);
|
require('./updater/moduleUpdater').initPathsOnly(buildInfo);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue