1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Allow codeEditor theme to be set missing from settings.js

This commit is contained in:
Steve-Mcl 2022-07-21 14:44:29 +01:00
parent 1b94cc3ac0
commit bc7852c1cc

View File

@ -327,10 +327,9 @@ module.exports = {
themeContext.header.url = themePlugin.header.url || themeContext.header.url themeContext.header.url = themePlugin.header.url || themeContext.header.url
} }
} }
if(theme.codeEditor) { theme.codeEditor = theme.codeEditor || {}
theme.codeEditor.options = Object.assign({}, themePlugin.monacoOptions, theme.codeEditor.options); theme.codeEditor.options = Object.assign({}, themePlugin.monacoOptions, theme.codeEditor.options);
} }
}
activeThemeInitialised = true; activeThemeInitialised = true;
} }
return themeContext; return themeContext;