Skip to content

Commit 0ce42bc

Browse files
committed
worker.App: insertThemeFiles() => recent change breaks multi window covid app #3455
1 parent da1cd2e commit 0ce42bc

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/worker/App.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,19 +122,19 @@ class App extends Base {
122122
lAppName = appName.toLowerCase(),
123123
cssMap = Neo.cssMap,
124124
parent = proto?.__proto__,
125-
classPath, fileName, mapClassName, ns, themeFolders;
125+
classPath, classRoot, fileName, mapClassName, ns, themeFolders;
126126

127127
if (!cssMap) {
128128
me.themeFilesCache.push([appName, proto]);
129129
} else {
130130
// we need to modify app related class names
131131
if (!className.startsWith('Neo.')) {
132132
className = className.split('.');
133-
lAppName = className.shift().toLowerCase();
133+
classRoot = className.shift().toLowerCase();
134134

135135
className[0] === 'view' && className.shift();
136136

137-
mapClassName = `apps.${Neo.apps[appName].appThemeFolder || lAppName}.${className.join('.')}`;
137+
mapClassName = `apps.${Neo.apps[appName].appThemeFolder || classRoot}.${className.join('.')}`;
138138
className = `apps.${lAppName}.${className.join('.')}`;
139139
}
140140

0 commit comments

Comments
 (0)