Fix crashing when hiding "Play with touch" section

This commit is contained in:
redphx 2024-08-02 05:56:35 +07:00
parent 8aa5177e10
commit d2839b2b7c
2 changed files with 2 additions and 2 deletions

View File

@ -3969,7 +3969,7 @@ true,this._connectionType=`;
let index = str.indexOf('("Play_With_Touch"),');
if (index < 0)
return !1;
if (index = str.indexOf("const ", index - 100), index < 0)
if (index = str.indexOf("const ", index - 30), index < 0)
return !1;
return str = str.substring(0, index) + "return null;" + str.substring(index), str;
},

View File

@ -750,7 +750,7 @@ true` + text;
return false;
}
index = str.indexOf('const ', index - 100);
index = str.indexOf('const ', index - 30);
if (index < 0) {
return false;
}