summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--frontend/src/plugin-loader.tsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/frontend/src/plugin-loader.tsx b/frontend/src/plugin-loader.tsx
index e0dedb34..b3df0f28 100644
--- a/frontend/src/plugin-loader.tsx
+++ b/frontend/src/plugin-loader.tsx
@@ -89,7 +89,9 @@ class PluginLoader extends Logger {
this.reloadLock = true;
this.log(`Trying to load ${name}`);
- const oldPlugin = this.plugins.find((plugin) => plugin.name === name);
+ const oldPlugin = this.plugins.find(
+ (plugin) => plugin.name === name || plugin.name === name.replace('$LEGACY_', ''),
+ );
if (oldPlugin) {
oldPlugin.onDismount?.();
this.plugins = this.plugins.filter((plugin) => plugin !== oldPlugin);