mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-06 07:37:19 +02:00
Fix crashing on Chromium 124
This commit is contained in:
parent
6f9ae9a555
commit
7bd071d527
@ -7143,13 +7143,7 @@ class UserAgent {
|
||||
|
||||
const profile = getPref(Preferences.USER_AGENT_PROFILE);
|
||||
if (profile === UserAgent.PROFILE_DEFAULT) {
|
||||
// Fix Kiwi 124
|
||||
if (window.navigator.userAgent.includes('Chrome/124.0.0.0')) {
|
||||
newUserAgent = window.navigator.userAgent.replace('Chrome/124.0.0.0', 'Chrome/122.0.0.0')
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
if (!newUserAgent) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user