fix PronounDB crash with new profile in dms, force start dependencies

This commit is contained in:
Vendicated 2022-11-12 15:09:02 +01:00
parent b48c8d8a4a
commit 81edc14070
No known key found for this signature in database
GPG key ID: EC781ADFB93EFFA3
8 changed files with 80 additions and 24 deletions

View file

@ -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;