mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-04 22:57:19 +02:00
Fix "patchShowSensorControls" patch
This commit is contained in:
parent
06a9ca9db8
commit
91deba793c
@ -541,12 +541,12 @@ BxLogger.info('patchRemotePlayMkb', ${configsVar});
|
||||
},
|
||||
|
||||
patchShowSensorControls(str: string) {
|
||||
let text = '{shouldShowSensorControls:';
|
||||
let text = ',{shouldShowSensorControls:';
|
||||
if (!str.includes(text)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
const newCode = `{shouldShowSensorControls: (window.BX_EXPOSED && window.BX_EXPOSED.shouldShowSensorControls) ||`;
|
||||
const newCode = `,{shouldShowSensorControls: (window.BX_EXPOSED && window.BX_EXPOSED.shouldShowSensorControls) ||`;
|
||||
|
||||
str = str.replace(text, newCode);
|
||||
return str;
|
||||
|
Loading…
x
Reference in New Issue
Block a user