Don't allow overriding name

This commit is contained in:
AAGaming
2022-06-21 09:52:54 -04:00
committed by GitHub
parent 6289578f68
commit e6e74d8e9d

View File

@@ -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`);
}