From d0e7a319d6d1da7f29c188349c995b0276cd6730 Mon Sep 17 00:00:00 2001 From: Vendicated Date: Sat, 15 Apr 2023 20:13:18 +0200 Subject: [PATCH] Spoof UserAgent as browser. Fixes VCs????? --- src/main/mainWindow.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/mainWindow.ts b/src/main/mainWindow.ts index e505aff..5a9db34 100644 --- a/src/main/mainWindow.ts +++ b/src/main/mainWindow.ts @@ -256,6 +256,10 @@ export function createMainWindow() { makeLinksOpenExternally(win); initSettingsListeners(win); + win.webContents.setUserAgent( + "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36" + ); + const subdomain = Settings.store.discordBranch === "canary" || Settings.store.discordBranch === "ptb" ? `${Settings.store.discordBranch}.`