diff options
author | Vendicated <vendicated@riseup.net> | 2022-11-12 15:09:02 +0100 |
---|---|---|
committer | Vendicated <vendicated@riseup.net> | 2022-11-12 17:20:19 +0100 |
commit | 81edc1407071c6c0328f40a1ee487ea0388b9a7e (patch) | |
tree | 42c54ab94a58d9ffd5a2b201cfe9539a158386e4 /src/webpack/common.tsx | |
parent | b48c8d8a4a003ffe4bdee4c3ba3ae6f54ce1f317 (diff) | |
download | Vencord-81edc1407071c6c0328f40a1ee487ea0388b9a7e.tar.gz Vencord-81edc1407071c6c0328f40a1ee487ea0388b9a7e.tar.bz2 Vencord-81edc1407071c6c0328f40a1ee487ea0388b9a7e.zip |
fix PronounDB crash with new profile in dms, force start dependencies
Diffstat (limited to 'src/webpack/common.tsx')
-rw-r--r-- | src/webpack/common.tsx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/webpack/common.tsx b/src/webpack/common.tsx index 8c77506..497dfe4 100644 --- a/src/webpack/common.tsx +++ b/src/webpack/common.tsx @@ -228,9 +228,11 @@ export const Menu = proxyLazy(() => { if (!hasDeobfuscator) { for (const m of menuItems) - map[m] = () => { - throw new Error(`Your plugin needs to depend on MenuItemDeobfuscatorApi to use ${m}`); - }; + Object.defineProperty(map, m, { + get() { + throw new Error("MenuItemDeobfuscator must be enabled to use this."); + } + }); } return map; |