Skip to content

Commit c5b5fed

Browse files
committedJun 6, 2022
Add function for accessing plugin API
1 parent 948a412 commit c5b5fed

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎index.ts

+4
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,7 @@ export function registerAPI(name: string, api: any, plugin: Plugin) {
1515
delete window['PluginApi'][name];
1616
});
1717
}
18+
19+
export function pluginApi(name: string) {
20+
return window['PluginApi'][name];
21+
}

0 commit comments

Comments
 (0)
Please sign in to comment.