diff --git a/edit/source-editor.js b/edit/source-editor.js index e931f02c..8829f099 100644 --- a/edit/source-editor.js +++ b/edit/source-editor.js @@ -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);