mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-29 21:37:34 -07:00
fix lint (#6568)
This commit is contained in:
parent
9a8fc2afb9
commit
91857edb20
1 changed files with 2 additions and 3 deletions
|
@ -44,9 +44,8 @@ export function createAiScriptEnv(vm, opts) {
|
||||||
|
|
||||||
export function createPluginEnv(vm, opts) {
|
export function createPluginEnv(vm, opts) {
|
||||||
const config = new Map();
|
const config = new Map();
|
||||||
for (const key in opts.plugin.config) {
|
for (const [k, v] of Object.entries(opts.plugin.config)) {
|
||||||
const val = opts.plugin.configData[key] || opts.plugin.config[key].default;
|
config.set(k, jsToVal(opts.plugin.configData[k] || v.default));
|
||||||
config.set(key, jsToVal(val));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
Loading…
Reference in a new issue