Fix: export V2 to plugins

This commit is contained in:
Marco Rodolfi
2023-06-22 12:54:41 +02:00
parent fc72ac5c63
commit b2a1b172e2
2 changed files with 12 additions and 1 deletions
+1
View File
@@ -438,6 +438,7 @@ class PluginLoader extends Logger {
toaster: this.toaster,
callServerMethod: this.callServerMethod,
openFilePicker: this.openFilePicker,
openFilePickerV2: this.openFilePickerV2,
async callPluginMethod(methodName: string, args = {}) {
const response = await fetch(`http://127.0.0.1:1337/plugins/${pluginName}/methods/${methodName}`, {
method: 'POST',