mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-10 02:13:09 +02:00
feat(client): AiScript: Plugin:open_url function
This commit is contained in:
parent
2701a7e85f
commit
60d81d74e3
1 changed files with 3 additions and 0 deletions
|
@ -73,6 +73,9 @@ export function createPluginEnv(vm, opts) {
|
||||||
'Plugin:register_note_view_interruptor': values.FN_NATIVE(([handler]) => {
|
'Plugin:register_note_view_interruptor': values.FN_NATIVE(([handler]) => {
|
||||||
vm.$store.commit('registerNoteViewInterruptor', { pluginId: opts.plugin.id, handler });
|
vm.$store.commit('registerNoteViewInterruptor', { pluginId: opts.plugin.id, handler });
|
||||||
}),
|
}),
|
||||||
|
'Plugin:open_url': values.FN_NATIVE(([url]) => {
|
||||||
|
window.open(url.value, '_blank');
|
||||||
|
}),
|
||||||
'Plugin:config': values.OBJ(config),
|
'Plugin:config': values.OBJ(config),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue