diff options
author | Vendicated <vendicated@riseup.net> | 2022-09-16 20:52:51 +0200 |
---|---|---|
committer | Vendicated <vendicated@riseup.net> | 2022-09-16 20:53:04 +0200 |
commit | 37e81c017e3b1fc47a58efcec02baafdc8d121ab (patch) | |
tree | aa545af272709083a8f1b813e5ce650c7c2dece2 /src | |
parent | 66098b181ab7aaafb9d7d6fb7f8e568e0568c133 (diff) | |
download | Vencord-37e81c017e3b1fc47a58efcec02baafdc8d121ab.tar.gz Vencord-37e81c017e3b1fc47a58efcec02baafdc8d121ab.tar.bz2 Vencord-37e81c017e3b1fc47a58efcec02baafdc8d121ab.zip |
patchWebpack: Fix toString on replaced factory methods
Diffstat (limited to 'src')
-rw-r--r-- | src/utils/patchWebpack.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/utils/patchWebpack.ts b/src/utils/patchWebpack.ts index 798dcde..488e430 100644 --- a/src/utils/patchWebpack.ts +++ b/src/utils/patchWebpack.ts @@ -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]; |