feat(client): Plugin:register_note_post_interruptor API
This commit is contained in:
parent
60d81d74e3
commit
e7de5f6051
3 changed files with 26 additions and 4 deletions
|
@ -73,6 +73,9 @@ export function createPluginEnv(vm, opts) {
|
|||
'Plugin:register_note_view_interruptor': values.FN_NATIVE(([handler]) => {
|
||||
vm.$store.commit('registerNoteViewInterruptor', { pluginId: opts.plugin.id, handler });
|
||||
}),
|
||||
'Plugin:register_note_post_interruptor': values.FN_NATIVE(([handler]) => {
|
||||
vm.$store.commit('registerNotePostInterruptor', { pluginId: opts.plugin.id, handler });
|
||||
}),
|
||||
'Plugin:open_url': values.FN_NATIVE(([url]) => {
|
||||
window.open(url.value, '_blank');
|
||||
}),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue