From 88141bb4e9f2d0df6375c0ef6e87cc9d2385ab24 Mon Sep 17 00:00:00 2001 From: Muhammed Ali Geldi <37880516+mgeldi@users.noreply.github.com> Date: Tue, 20 Oct 2026 21:15:51 +0200 Subject: [PATCH] Apply user agent to entire session, not just main webContents (#1361) --- src/main/mainWindow.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/mainWindow.ts b/src/main/mainWindow.ts index 08bfe2e7..4d579339 100644 --- a/src/main/mainWindow.ts +++ b/src/main/mainWindow.ts @@ -435,6 +435,7 @@ function createMainWindow() { initDevtoolsListeners(win); initStaticTitle(win); + win.webContents.session.setUserAgent(BrowserUserAgent); win.webContents.setUserAgent(BrowserUserAgent); // if the open-url event is fired (in index.ts) while starting up, darwinURL will be set. If not fall back to checking the process args (which Windows and Linux use for URI calling.)