diff options
| author | Kagami Sascha Rosylight <saschanaz@outlook.com> | 2022-12-22 16:01:59 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-22 16:01:59 +0900 |
| commit | f1fd1d2585bd5230caea4c7b8814c2cf007e57cc (patch) | |
| tree | 212dd8f70312b9237484057deba6bc9611ec44d0 /packages/client/src/plugin.ts | |
| parent | Improve Dockerfile (#9105) (diff) | |
| download | sharkey-f1fd1d2585bd5230caea4c7b8814c2cf007e57cc.tar.gz sharkey-f1fd1d2585bd5230caea4c7b8814c2cf007e57cc.tar.bz2 sharkey-f1fd1d2585bd5230caea4c7b8814c2cf007e57cc.zip | |
style: add missing trailing commas (#9387)
Diffstat (limited to 'packages/client/src/plugin.ts')
| -rw-r--r-- | packages/client/src/plugin.ts | 12 |
1 files changed, 6 insertions, 6 deletions
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)])); - } + }, }); } |