From 0eca003c647df3277abd70f59dd4e1f8d2eb374e Mon Sep 17 00:00:00 2001
From: Wei Ouyang <oeway007@gmail.com>
Date: Wed, 3 Jul 2024 04:37:17 +0200
Subject: [PATCH] Update to loadPlugin api

---
 src/components/ImJoyEditor.vue | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/components/ImJoyEditor.vue b/src/components/ImJoyEditor.vue
index a954c66..145c044 100644
--- a/src/components/ImJoyEditor.vue
+++ b/src/components/ImJoyEditor.vue
@@ -463,7 +463,7 @@ export default {
       try {
         this.loading = true;
         this.api.showProgress(0);
-        this.plugin = await this.api.getPlugin(this.editor.getValue(), {
+        this.plugin = await this.api.loadPlugin({src: this.editor.getValue()}, {
           namespace: this.config.namespace
         });
         if (!this.loading) {