You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-07-16 00:14:34 +02:00
This commit is contained in:
@ -11,6 +11,7 @@ export interface MatchedStartFlags {
|
||||
isSafeMode?: boolean;
|
||||
showStackTraces?: boolean;
|
||||
logLevel?: LogLevel;
|
||||
allowOverridingDnsResultOrder?: boolean;
|
||||
devPlugins?: string[];
|
||||
}
|
||||
|
||||
@ -63,6 +64,14 @@ const processStartFlags = async (argv: string[], setDefaults = true) => {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (arg.startsWith('--dns-result-order=')) {
|
||||
matched.allowOverridingDnsResultOrder = false;
|
||||
|
||||
// Handled by Electron/NodeJS (and indicates we shouldn't override this ourselves).
|
||||
argv.splice(0, 1);
|
||||
continue;
|
||||
}
|
||||
|
||||
if (arg === '--debug') {
|
||||
// Currently only handled by ElectronAppWrapper (isDebugMode property)
|
||||
argv.splice(0, 1);
|
||||
@ -168,6 +177,7 @@ const processStartFlags = async (argv: string[], setDefaults = true) => {
|
||||
if (!matched.logLevel) matched.logLevel = Logger.LEVEL_INFO;
|
||||
if (!matched.env) matched.env = 'prod';
|
||||
if (!matched.devPlugins) matched.devPlugins = [];
|
||||
matched.allowOverridingDnsResultOrder ??= true;
|
||||
}
|
||||
|
||||
return {
|
||||
|
Reference in New Issue
Block a user