Merge remote-tracking branch 'upstream/dev' into dev

This commit is contained in:
thororen1234 2024-08-20 11:09:13 -04:00
commit 6aa0b24cbc
2 changed files with 10 additions and 75 deletions

View file

@ -355,8 +355,16 @@ function patchFactories(factories: Record<string, (module: any, exports: any, re
if (!patch.all) patches.splice(i--, 1);
}
if (mod !== originalMod) {
factory.$$vencordPatchedSource = String(mod);
if (IS_DEV) {
if (mod !== originalMod) {
factory.$$vencordPatchedSource = String(mod);
} else if (wreq != null) {
const existingFactory = wreq.m[id];
if (existingFactory != null) {
factory.$$vencordPatchedSource = existingFactory.$$vencordPatchedSource;
}
}
}
}
}