Fix theme name

This commit is contained in:
Jan Oberhauser 2021-12-20 23:52:19 +01:00
parent c62225c866
commit cd3ea6a33f

View file

@ -58,7 +58,7 @@ export default mixins(genericHelpers).extend({
},
});
monaco.editor.defineTheme('myTheme', {
monaco.editor.defineTheme('n8nCustomTheme', {
base: 'vs',
inherit: true,
rules: [],
@ -66,7 +66,7 @@ export default mixins(genericHelpers).extend({
'editor.background': '#f5f2f0',
},
});
monaco.editor.setTheme('myTheme');
monaco.editor.setTheme('n8nCustomTheme');
this.monacoInstance.onDidChangeModelContent(() => {
const model = this.monacoInstance!.getModel();