[Argv] Remove lib as unneeded
This commit is contained in:
parent
803c008fbe
commit
dddd625954
2 changed files with 2 additions and 4 deletions
5
src/bootstrap.js
vendored
5
src/bootstrap.js
vendored
|
@ -12,7 +12,6 @@ log('Bootstrap', 'Forcing Electron props');
|
|||
app.name = 'discord'; // Force name as sometimes breaks data path even with "discord" name (also fixes kernel?)
|
||||
|
||||
const requireNative = require('./utils/requireNative');
|
||||
const argv = require('./utils/argv');
|
||||
|
||||
const paths = require('./paths');
|
||||
global.moduleDataPath = paths.getModuleDataPath(); // Global because discord
|
||||
|
@ -100,7 +99,7 @@ const startCore = () => {
|
|||
};
|
||||
|
||||
const startUpdate = () => {
|
||||
const startMinimized = argv.hasFlag('--start-minimized');
|
||||
const startMinimized = process.argv.includes('--start-minimized');
|
||||
log('Bootstrap', 'Start minimized:', startMinimized);
|
||||
|
||||
appUpdater.update(startMinimized, () => {
|
||||
|
@ -139,7 +138,7 @@ getModuleDataPath: ${paths.getModuleDataPath()}
|
|||
getInstallPath: ${paths.getInstallPath()}`);
|
||||
|
||||
const instanceLock = app.requestSingleInstanceLock();
|
||||
const allowMultiInstance = argv.hasFlag('--multi-instance') || oaConfig.multiInstance === true; // argv flag or config
|
||||
const allowMultiInstance = process.argv.includes('--multi-instance') || oaConfig.multiInstance === true; // argv flag or config
|
||||
|
||||
console.log(instanceLock, allowMultiInstance);
|
||||
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
exports.hasFlag = (flag) => process.argv.includes(flag);
|
Loading…
Reference in a new issue