*Call loadUtilFunctions before loading plugins
This commit is contained in:
parent
68422f0c1a
commit
fe021500c6
|
@ -13,7 +13,7 @@ import {
|
||||||
setSslContext,
|
setSslContext,
|
||||||
} from "./ssl.js";
|
} from "./ssl.js";
|
||||||
import log from "loglevel";
|
import log from "loglevel";
|
||||||
import { getSeed } from "./util.js";
|
import { getSeed, loadUtilFunctions } from "./util.js";
|
||||||
import { getRouter, resetRouter, setRouter } from "./relay";
|
import { getRouter, resetRouter, setRouter } from "./relay";
|
||||||
import {
|
import {
|
||||||
createIndependentFileSmall,
|
createIndependentFileSmall,
|
||||||
|
@ -118,6 +118,7 @@ export function getPluginAPI(): PluginApiManager {
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function loadPlugins() {
|
export async function loadPlugins() {
|
||||||
|
await loadUtilFunctions();
|
||||||
for (const plugin of config.array("plugins")) {
|
for (const plugin of config.array("plugins")) {
|
||||||
await getPluginAPI().loadPlugin(plugin);
|
await getPluginAPI().loadPlugin(plugin);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue