app.locals repalced

This commit is contained in:
2026-04-28 12:51:46 +02:00
parent d84ee90cd2
commit 9ffea9ee45
7 changed files with 109 additions and 98 deletions

View File

@@ -1,11 +1,12 @@
const { service } = require('@root/server.js');
const { localPath, cache, runtimeFile } = require('@root/globalize.js');
module.exports = {
renderWindow: async function(app, view, data = {}, extraData = {}, res) {
const name = res.req.body.name;
const label = res.req.body.viewLabel;
try {
const plugin = app.locals.startMenuItems.find(plugin => plugin.name == name);
const plugin = cache.startMenuItems.find(plugin => plugin.name == name);
const windowData = plugin.menu.items.find(item => item.label == label);
// Alle Daten zusammenführen