mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-06 23:57: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);
|
const profile = getPref(Preferences.USER_AGENT_PROFILE);
|
||||||
if (profile === UserAgent.PROFILE_DEFAULT) {
|
if (profile === UserAgent.PROFILE_DEFAULT) {
|
||||||
// Fix Kiwi 124
|
return;
|
||||||
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;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!newUserAgent) {
|
if (!newUserAgent) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user