Skip to content
Snippets Groups Projects
Commit 60d81d74 authored by syuilo's avatar syuilo
Browse files

feat(client): AiScript: Plugin:open_url function

parent 2701a7e8
No related branches found
No related tags found
No related merge requests found
......@@ -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:open_url': values.FN_NATIVE(([url]) => {
window.open(url.value, '_blank');
}),
'Plugin:config': values.OBJ(config),
};
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment