mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Fix theme handling when no editorTheme.page setting
This commit is contained in:
parent
9886af3cec
commit
1af21735a9
@ -231,6 +231,7 @@ module.exports = {
|
|||||||
themePlugin.path
|
themePlugin.path
|
||||||
);
|
);
|
||||||
themeContext.page.css = cssFiles.concat(themeContext.page.css || [])
|
themeContext.page.css = cssFiles.concat(themeContext.page.css || [])
|
||||||
|
theme.page = theme.page || {_:{}}
|
||||||
theme.page._.css = cssFiles.concat(theme.page._.css || [])
|
theme.page._.css = cssFiles.concat(theme.page._.css || [])
|
||||||
}
|
}
|
||||||
if (themePlugin.scripts) {
|
if (themePlugin.scripts) {
|
||||||
@ -241,6 +242,7 @@ module.exports = {
|
|||||||
themePlugin.path
|
themePlugin.path
|
||||||
)
|
)
|
||||||
themeContext.page.scripts = scriptFiles.concat(themeContext.page.scripts || [])
|
themeContext.page.scripts = scriptFiles.concat(themeContext.page.scripts || [])
|
||||||
|
theme.page = theme.page || {_:{}}
|
||||||
theme.page._.scripts = cssFiles.concat(theme.page._.scripts || [])
|
theme.page._.scripts = cssFiles.concat(theme.page._.scripts || [])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user