Apply user agent to entire session, not just main webContents (#1361)

This commit is contained in:
Muhammed Ali Geldi authored and GitHub committed 2026-10-20 21:15:51 +02:00
1 parent a02035be20
commit 88141bb4e9
1 file changed
+1
+1
View File
@@ -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.)