This commit is contained in:
Nuckyz 2024-05-23 06:09:47 -03:00
parent bb3f629672
commit ac61a0377f
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9
2 changed files with 2 additions and 3 deletions

View file

@ -160,8 +160,7 @@ function initWs(isManual = false) {
return reply("Expected exactly one 'find' matches, found " + keys.length);
const mod = candidates[keys[0]];
// @ts-ignore
let src = String(mod.$$vencordOriginal ?? mod).replaceAll("\n", "");
let src = mod.toString().replaceAll("\n", "");
if (src.startsWith("function(")) {
src = "0," + src;

View file

@ -501,7 +501,7 @@ export function search(...filters: Array<string | RegExp>) {
outer:
for (const id in factories) {
// @ts-ignore
const factory = factories[id].$$vencordOriginal ?? factories[id];
const factory = factories[id];
const str: string = factory.toString();
for (const filter of filters) {
if (typeof filter === "string" && !str.includes(filter)) continue outer;