1
0
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:
Nick O'Leary 2021-04-29 15:32:26 +01:00
parent 9886af3cec
commit 1af21735a9
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -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 || [])
}
}