1
0
Fork 1
mirror of https://github.com/Vendicated/Vencord.git synced 2025-01-09 17:36:23 +00:00

patchWebpack: Fix toString on replaced factory methods

This commit is contained in:
Vendicated 2022-09-16 20:52:51 +02:00
parent 66098b181a
commit 37e81c017e
No known key found for this signature in database
GPG key ID: EC781ADFB93EFFA3

View file

@ -74,6 +74,8 @@ function patchPush() {
}
}
};
modules[id].toString = () => mod.toString();
modules[id].original = originalMod;
for (let i = 0; i < patches.length; i++) {
const patch = patches[i];