app.locals repalced
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user