summaryrefslogtreecommitdiff
path: root/packages/client/src/plugin.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/client/src/plugin.ts')
-rw-r--r--packages/client/src/plugin.ts12
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)]));
- }
+ },
});
}