Spoof UserAgent as browser. Fixes VCs?????

This commit is contained in:
Vendicated 2023-04-15 20:13:18 +02:00
parent 4afafa5038
commit d0e7a319d6
No known key found for this signature in database
GPG key ID: A1DC0CFB5615D905

View file

@ -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}.`