add cli flags to spoof user agent

This commit is contained in:
Vendicated
2025-10-18 17:54:05 +02:00
parent 40d9cba2f0
commit 6aeacaaf21
4 changed files with 111 additions and 2 deletions
+2 -1
View File
@@ -22,6 +22,7 @@ import type { SettingsStore } from "shared/utils/SettingsStore";
import { createAboutWindow } from "./about";
import { initArRPC } from "./arrpc";
import { CommandLine } from "./cli";
import { BrowserUserAgent, DEFAULT_HEIGHT, DEFAULT_WIDTH, MIN_HEIGHT, MIN_WIDTH } from "./constants";
import { AppEvents } from "./events";
import { darwinURL } from "./index";
@@ -428,7 +429,7 @@ function retryUrl(url: string, description: string) {
}
export async function createWindows() {
const startMinimized = process.argv.includes("--start-minimized");
const startMinimized = CommandLine.values["start-minimized"];
let splash: BrowserWindow | undefined;
if (Settings.store.enableSplashScreen !== false) {