mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-10 23:23:04 -04:00
fix PronounDB crash with new profile in dms, force start dependencies
This commit is contained in:
parent
b48c8d8a4a
commit
81edc14070
8 changed files with 80 additions and 24 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue