diff --git a/src/client/scripts/aiscript/api.ts b/src/client/scripts/aiscript/api.ts index 90418fc5ca..f3ab6c372a 100644 --- a/src/client/scripts/aiscript/api.ts +++ b/src/client/scripts/aiscript/api.ts @@ -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), }; }