From e6e74d8e9dcb0612e6e567a2300cca3e8c680f27 Mon Sep 17 00:00:00 2001
From: AAGaming <aa@mail.catvibers.me>
Date: Tue, 21 Jun 2022 09:52:54 -0400
Subject: Don't allow overriding name

---
 frontend/src/plugin-loader.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'frontend/src/plugin-loader.tsx')

diff --git a/frontend/src/plugin-loader.tsx b/frontend/src/plugin-loader.tsx
index 5f284503..9b1020c7 100644
--- a/frontend/src/plugin-loader.tsx
+++ b/frontend/src/plugin-loader.tsx
@@ -119,8 +119,8 @@ class PluginLoader extends Logger {
     if (res.ok) {
       let plugin = await eval(await res.text())(this.createPluginAPI(name));
       this.plugins.push({
-        name: name,
         ...plugin,
+        name: name,
       });
     } else throw new Error(`${name} frontend_bundle not OK`);
   }
-- 
cgit v1.2.3

