Add comment to await (#1311)
This commit is contained in:
parent
598735fc7b
commit
07291f9486
|
@ -69,6 +69,7 @@ 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`
|
||||
await replaceStyle(res.style);
|
||||
}
|
||||
showLog(res);
|
||||
|
|
Loading…
Reference in New Issue
Block a user