mirror of
https://github.com/Vencord/Vesktop.git
synced 2026-11-21 17:41:19 -08:00
Apply user agent to entire session, not just main webContents (#1361)
This commit is contained in:
1 parent
a02035be20
commit
88141bb4e9
1 file changed
+1
@@ -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.)
|
||||
|
||||
Reference in new issue
Block a user