mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-06 23:57:19 +02:00
Fix crashing when hiding "Play with touch" section
This commit is contained in:
parent
8aa5177e10
commit
d2839b2b7c
2
dist/better-xcloud.user.js
vendored
2
dist/better-xcloud.user.js
vendored
@ -3969,7 +3969,7 @@ true,this._connectionType=`;
|
|||||||
let index = str.indexOf('("Play_With_Touch"),');
|
let index = str.indexOf('("Play_With_Touch"),');
|
||||||
if (index < 0)
|
if (index < 0)
|
||||||
return !1;
|
return !1;
|
||||||
if (index = str.indexOf("const ", index - 100), index < 0)
|
if (index = str.indexOf("const ", index - 30), index < 0)
|
||||||
return !1;
|
return !1;
|
||||||
return str = str.substring(0, index) + "return null;" + str.substring(index), str;
|
return str = str.substring(0, index) + "return null;" + str.substring(index), str;
|
||||||
},
|
},
|
||||||
|
@ -750,7 +750,7 @@ true` + text;
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
index = str.indexOf('const ', index - 100);
|
index = str.indexOf('const ', index - 30);
|
||||||
if (index < 0) {
|
if (index < 0) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user