Fix "ignoreNewsSection" patch

This commit is contained in:
redphx
2025-06-06 07:29:53 +07:00
parent fad91d14a6
commit 67c2fb125f
3 changed files with 3 additions and 3 deletions

View File

@@ -5502,7 +5502,7 @@ true` + text;
return str = str.substring(0, index) + "|| true" + str.substring(index), str;
},
ignoreNewsSection(str) {
let index = str.indexOf('Logger("CarouselRow")');
let index = str.indexOf('("CarouselRow"))');
if (index > -1 && (index = PatcherUtils.lastIndexOf(str, "const ", index, 200)), index < 0) return !1;
return str = PatcherUtils.insertAt(str, index, "return null;"), str;
},