moduleUpdater: don't defer voice module

This commit is contained in:
Ducko 2022-12-02 22:38:48 +00:00
parent d1f9fe0024
commit ad9b161744
2 changed files with 1 additions and 3 deletions

View file

@ -65,8 +65,6 @@ injCSS(`<css>`);
openasar = {}; // Define global for any mods which want to know / etc
DiscordNative.nativeModules.ensureModule('discord_voice'); // Ensure discord_voice to generally prevent corruption message / broken VC, also for deferring for fresh start
setInterval(() => { // Try init themesync
try {
themesync();

View file

@ -65,7 +65,7 @@ exports.init = (endpoint, { releaseChannel, version }) => {
try {
installed = JSON.parse(fs.readFileSync(manifestPath));
} catch {
for (const m of [ 'desktop_core', 'utils' ]) { // Ignore actual bootstrap manifest and choose our own core 2, others are deferred
for (const m of [ 'desktop_core', 'utils', 'voice' ]) { // Ignore actual bootstrap manifest and choose our own core set, others are deferred
installed['discord_' + m] = { installedVersion: 0 }; // Set initial version as 0
}
}