change app plugins to be a map to prevent duplicates and provide easier access

This commit is contained in:
dswbx
2025-06-14 07:22:44 +02:00
parent 6e2596fb77
commit 8e1ecfcfe3
4 changed files with 19 additions and 15 deletions

View File

@@ -322,7 +322,7 @@ export class SystemController extends Controller {
local: datetimeStringLocal(),
utc: datetimeStringUTC(),
},
plugins: this.app.plugins.map((p) => p.name),
plugins: Array.from(this.app.plugins.keys()),
}),
);