[Updater > Module] Defer discord_voice install
This commit is contained in:
parent
dfba43512a
commit
bd94cf74c9
|
@ -51,7 +51,7 @@ document.body.appendChild(el);
|
|||
|
||||
openasar = {}; // Define global for any mods which want to know / etc
|
||||
|
||||
|
||||
DiscordNative.nativeModules.ensureModule('discord_voice');
|
||||
setInterval(() => { // Try init themesync
|
||||
try {
|
||||
themesync();
|
||||
|
|
|
@ -3,7 +3,6 @@ const fs = require('fs');
|
|||
const mkdirp = require('mkdirp');
|
||||
const Module = require('module');
|
||||
const { execFile } = require('child_process');
|
||||
const { Readable, Writable } = require('stream');
|
||||
const zlib = require('zlib');
|
||||
|
||||
const paths = require('../paths');
|
||||
|
@ -51,7 +50,7 @@ exports.init = (endpoint, { releaseChannel, version }) => {
|
|||
try {
|
||||
installed = JSON.parse(fs.readFileSync(manifestPath));
|
||||
} catch {
|
||||
for (const m of [ 'desktop_core', 'utils', 'voice' ]) { // Ignore actual bootstrap manifest and choose our own core 3, others are installed as/when needed
|
||||
for (const m of [ 'desktop_core', 'utils' ]) { // Ignore actual bootstrap manifest and choose our own core 3, others are installed as/when needed
|
||||
installed['discord_' + m] = { installedVersion: 0 }; // Set initial version as 0
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue