mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-08-01 10:56:42 +02:00
Fix "alwaysShowStreamHud" not working on non-TV devices
This commit is contained in:
@@ -759,6 +759,7 @@ if (this.baseStorageKey in window.BX_EXPOSED.overrideSettings) {
|
||||
return str;
|
||||
},
|
||||
|
||||
// game-stream.js 24.16.4
|
||||
alwaysShowStreamHud(str: string) {
|
||||
let index = str.indexOf(',{onShowStreamMenu:');
|
||||
if (index === -1) {
|
||||
@@ -770,7 +771,8 @@ if (this.baseStorageKey in window.BX_EXPOSED.overrideSettings) {
|
||||
return false;
|
||||
}
|
||||
|
||||
str = str.substring(0, index) + '|| true' + str.substring(index);
|
||||
const commaIndex = str.indexOf(',', index - 10);
|
||||
str = str.substring(0, commaIndex) + ',true' + str.substring(index);
|
||||
return str;
|
||||
},
|
||||
};
|
||||
|
Reference in New Issue
Block a user