*Ensure plugin list is unique

This commit is contained in:
Derrick Hammer 2022-09-21 16:03:12 -04:00
parent 8e5aa6f21b
commit 6d0aef8ae2
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ export function getPluginAPI(): PluginApiManager {
}
export async function loadPlugins() {
for (const plugin of config.array("plugins")) {
for (const plugin of [...new Set(config.array("plugins", []))] as []) {
await getPluginAPI().loadPlugin(plugin);
}
}