mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Fix theme handling when no editorTheme.page setting
This commit is contained in:
		| @@ -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 || []) | ||||
|                 } | ||||
|             } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user