From f1fd1d2585bd5230caea4c7b8814c2cf007e57cc Mon Sep 17 00:00:00 2001 From: Kagami Sascha Rosylight Date: Thu, 22 Dec 2022 16:01:59 +0900 Subject: style: add missing trailing commas (#9387) --- packages/client/src/plugin.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'packages/client/src/plugin.ts') diff --git a/packages/client/src/plugin.ts b/packages/client/src/plugin.ts index de1c955675..3a00cd0455 100644 --- a/packages/client/src/plugin.ts +++ b/packages/client/src/plugin.ts @@ -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)])); - } + }, }); } -- cgit v1.2.3-freya