[Index] Overlay experimenting
This commit is contained in:
parent
bfe3fb0fb5
commit
ed88339cb8
1 changed files with 14 additions and 1 deletions
15
src/index.js
15
src/index.js
|
@ -15,7 +15,20 @@ if (appMode === 'overlay-host') {
|
||||||
const buildInfo = require('./utils/buildInfo');
|
const buildInfo = require('./utils/buildInfo');
|
||||||
|
|
||||||
if (buildInfo.newUpdater) {
|
if (buildInfo.newUpdater) {
|
||||||
require('./utils/u2LoadModulePath')('discord_overlay2');
|
const updater = require('./updater/updater');
|
||||||
|
|
||||||
|
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 a new issue