From 07291f9486a823bd0457caccd53e87528f2dbaa7 Mon Sep 17 00:00:00 2001 From: Gusted Date: Fri, 13 Aug 2021 12:40:24 +0200 Subject: [PATCH] Add comment to await (#1311) --- edit/source-editor.js | 1 + 1 file changed, 1 insertion(+) 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);