From cc314b7be0ed7467467e7d3777c0c973417d0cde Mon Sep 17 00:00:00 2001 From: eight04 Date: Tue, 7 Dec 2021 12:29:54 +0800 Subject: [PATCH] Fix: minor --- edit/source-editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/edit/source-editor.js b/edit/source-editor.js index 138a34f1..ead9e378 100644 --- a/edit/source-editor.js +++ b/edit/source-editor.js @@ -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);