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