mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-06 23:57:19 +02:00
Minor fix
This commit is contained in:
parent
03eb323fd9
commit
13323cce24
@ -126,8 +126,10 @@ export class UserAgent {
|
||||
}
|
||||
|
||||
// Clear data of navigator.userAgentData, force xCloud to detect browser based on navigator.userAgent
|
||||
if ('userAgentData' in window.navigator) {
|
||||
(window.navigator as any).orgUserAgentData = (window.navigator as any).userAgentData;
|
||||
Object.defineProperty(window.navigator, 'userAgentData', {});
|
||||
}
|
||||
|
||||
// Override navigator.userAgent
|
||||
(window.navigator as any).orgUserAgent = window.navigator.userAgent;
|
||||
|
Loading…
x
Reference in New Issue
Block a user