*Call loadUtilFunctions before loading plugins

This commit is contained in:
Derrick Hammer 2022-09-09 06:18:59 -04:00
parent 68422f0c1a
commit fe021500c6
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 1 deletions

View File

@ -13,7 +13,7 @@ import {
setSslContext,
} from "./ssl.js";
import log from "loglevel";
import { getSeed } from "./util.js";
import { getSeed, loadUtilFunctions } from "./util.js";
import { getRouter, resetRouter, setRouter } from "./relay";
import {
createIndependentFileSmall,
@ -118,6 +118,7 @@ export function getPluginAPI(): PluginApiManager {
}
export async function loadPlugins() {
await loadUtilFunctions();
for (const plugin of config.array("plugins")) {
await getPluginAPI().loadPlugin(plugin);
}