usercss: force-refresh codemirror on saving to repaint vars
This commit is contained in:
parent
b995a9d316
commit
260cbddae0
|
@ -215,6 +215,7 @@ function createSourceEditor(style) {
|
|||
sourceCode: cm.getValue(),
|
||||
}))
|
||||
.then(replaceStyle)
|
||||
.then(() => cm.setOption('mode', cm.doc.mode))
|
||||
.catch(err => {
|
||||
if (err.message === t('styleMissingMeta', 'name')) {
|
||||
messageBox.confirm(t('usercssReplaceTemplateConfirmation')).then(ok => ok &&
|
||||
|
|
Loading…
Reference in New Issue
Block a user