Skip to content

Commit 5ecfa2a

Browse files
committed
fix: fix #2645, fix #2741
1 parent b9beea8 commit 5ecfa2a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/index.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -505,10 +505,11 @@ app.once('browser-window-created', (_event, win) => {
505505
// User agents are from https://developers.whatismybrowser.com/useragents/explore/
506506
const originalUserAgent = win.webContents.userAgent;
507507
const userAgents = {
508-
mac: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 12.1; rv:95.0) Gecko/20100101 Firefox/95.0',
508+
mac: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.6723.152 Safari/537.36',
509509
windows:
510-
'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:95.0) Gecko/20100101 Firefox/95.0',
511-
linux: 'Mozilla/5.0 (Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0',
510+
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.6723.152 Safari/537.36',
511+
linux:
512+
'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.6723.152 Safari/537.36',
512513
};
513514

514515
const updatedUserAgent = is.macOS()

0 commit comments

Comments
 (0)