fix bug
This commit is contained in:
parent
585a1035c0
commit
59c84ebb5d
1 changed files with 1 additions and 1 deletions
2
index.ts
2
index.ts
|
@ -67,7 +67,7 @@ function getEnabledPlugins() {
|
||||||
let userpluginsCount = 0;
|
let userpluginsCount = 0;
|
||||||
|
|
||||||
Object.entries(Vencord.Plugins.plugins).forEach(([key, value]) => {
|
Object.entries(Vencord.Plugins.plugins).forEach(([key, value]) => {
|
||||||
if (value.started) if (PluginMeta[value.name].userPlugin) userpluginsCount++; else counter++;
|
if (value.started) if (PluginMeta[value.name]?.userPlugin) userpluginsCount++; else counter++;
|
||||||
});
|
});
|
||||||
|
|
||||||
return `${counter} (official)` + (userpluginsCount ? `, ${userpluginsCount} (userplugins)` : "");
|
return `${counter} (official)` + (userpluginsCount ? `, ${userpluginsCount} (userplugins)` : "");
|
||||||
|
|
Loading…
Reference in a new issue