mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-07 08:07:18 +02:00
Remove disableTrackEvent() patch
This commit is contained in:
parent
857b63a9f9
commit
fd21fe63f7
@ -140,16 +140,6 @@ if (!!window.BX_REMOTE_PLAY_CONFIG) {
|
|||||||
return str.replace(text, text + newCode);
|
return str.replace(text, text + newCode);
|
||||||
},
|
},
|
||||||
|
|
||||||
// Disable trackEvent() function
|
|
||||||
disableTrackEvent(str: string) {
|
|
||||||
const text = 'this.trackEvent=';
|
|
||||||
if (!str.includes(text)) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
return str.replace(text, 'this.trackEvent=e=>{},this.uwuwu=');
|
|
||||||
},
|
|
||||||
|
|
||||||
// Block WebRTC stats collector
|
// Block WebRTC stats collector
|
||||||
blockWebRtcStatsCollector(str: string) {
|
blockWebRtcStatsCollector(str: string) {
|
||||||
const text = 'this.shouldCollectStats=!0';
|
const text = 'this.shouldCollectStats=!0';
|
||||||
@ -915,7 +905,6 @@ let PATCH_ORDERS: PatchArray = [
|
|||||||
'disableIndexDbLogging',
|
'disableIndexDbLogging',
|
||||||
|
|
||||||
'disableTelemetryProvider',
|
'disableTelemetryProvider',
|
||||||
'disableTrackEvent',
|
|
||||||
] : []),
|
] : []),
|
||||||
|
|
||||||
...(getPref(PrefKey.REMOTE_PLAY_ENABLED) ? [
|
...(getPref(PrefKey.REMOTE_PLAY_ENABLED) ? [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user