aboutsummaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorVendicated <vendicated@riseup.net>2022-09-27 14:34:57 +0200
committerVendicated <vendicated@riseup.net>2022-09-27 14:34:57 +0200
commit6398dd25d20e6bc3e02425b709233066baf64e0c (patch)
tree3502593fdb4912c678ce6e840726114ccdb8c218 /src/utils
parentd0940a8b194805173dae029d0fe284974ffecc7a (diff)
downloadVencord-6398dd25d20e6bc3e02425b709233066baf64e0c.tar.gz
Vencord-6398dd25d20e6bc3e02425b709233066baf64e0c.tar.bz2
Vencord-6398dd25d20e6bc3e02425b709233066baf64e0c.zip
Unbrick Vencord - Pt 1
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/patchWebpack.ts8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/utils/patchWebpack.ts b/src/utils/patchWebpack.ts
index 488e430..ce29c82 100644
--- a/src/utils/patchWebpack.ts
+++ b/src/utils/patchWebpack.ts
@@ -65,9 +65,11 @@ function patchPush() {
if (filter(exports)) {
subscriptions.delete(filter);
callback(exports);
- } else if (exports.default && filter(exports.default)) {
- subscriptions.delete(filter);
- callback(exports.default);
+ } else for (const nested in exports) {
+ if (exports[nested] && filter(exports[nested])) {
+ subscriptions.delete(filter);
+ callback(exports[nested]);
+ }
}
} catch (err) {
logger.error("Error while firing callback for webpack chunk", err);