Fix: minor
This commit is contained in:
parent
7a0d00a4ba
commit
cc314b7be0
|
@ -70,10 +70,10 @@ function SourceEditor() {
|
||||||
messageBoxProxy.alert(t('usercssAvoidOverwriting'), 'danger', t('genericError'));
|
messageBoxProxy.alert(t('usercssAvoidOverwriting'), 'danger', t('genericError'));
|
||||||
} else {
|
} else {
|
||||||
res = await API.usercss.editSave({customName, enabled, id, sourceCode});
|
res = await API.usercss.editSave({customName, enabled, id, sourceCode});
|
||||||
// Awaiting inside `try` so that exceptions go to our `catch`
|
|
||||||
if (!id) {
|
if (!id) {
|
||||||
editor.emit('styleChange', res.style, 'new');
|
editor.emit('styleChange', res.style, 'new');
|
||||||
}
|
}
|
||||||
|
// Awaiting inside `try` so that exceptions go to our `catch`
|
||||||
await replaceStyle(res.style);
|
await replaceStyle(res.style);
|
||||||
}
|
}
|
||||||
showLog(res);
|
showLog(res);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user