style: add missing trailing commas (#9387)

This commit is contained in:
Kagami Sascha Rosylight 2022-12-22 16:01:59 +09:00 committed by GitHub
parent 9314ceae36
commit f1fd1d2585
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
79 changed files with 320 additions and 320 deletions

View file

@ -12,7 +12,7 @@ export function install(plugin) {
const aiscript = new AiScript(createPluginEnv({
plugin: plugin,
storageKey: 'plugins:' + plugin.id
storageKey: 'plugins:' + plugin.id,
}), {
in: (q) => {
return new Promise(ok => {
@ -86,7 +86,7 @@ function registerPostFormAction({ pluginId, title, handler }) {
pluginContexts.get(pluginId).execFn(handler, [utils.jsToVal(form), values.FN_NATIVE(([key, value]) => {
update(key.value, value.value);
})]);
}
},
});
}
@ -94,7 +94,7 @@ function registerUserAction({ pluginId, title, handler }) {
userActions.push({
title, handler: (user) => {
pluginContexts.get(pluginId).execFn(handler, [utils.jsToVal(user)]);
}
},
});
}
@ -102,7 +102,7 @@ function registerNoteAction({ pluginId, title, handler }) {
noteActions.push({
title, handler: (note) => {
pluginContexts.get(pluginId).execFn(handler, [utils.jsToVal(note)]);
}
},
});
}
@ -110,7 +110,7 @@ function registerNoteViewInterruptor({ pluginId, handler }) {
noteViewInterruptors.push({
handler: async (note) => {
return utils.valToJs(await pluginContexts.get(pluginId).execFn(handler, [utils.jsToVal(note)]));
}
},
});
}
@ -118,6 +118,6 @@ function registerNotePostInterruptor({ pluginId, handler }) {
notePostInterruptors.push({
handler: async (note) => {
return utils.valToJs(await pluginContexts.get(pluginId).execFn(handler, [utils.jsToVal(note)]));
}
},
});
}