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