From f255631a0beb86a8cead6bd0c8be88d99bc1ec1b Mon Sep 17 00:00:00 2001 From: eight Date: Sat, 7 Oct 2017 18:14:49 +0800 Subject: [PATCH] Fix: live-reload doesn't send style id --- install-usercss/install-usercss.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install-usercss/install-usercss.js b/install-usercss/install-usercss.js index 5676f2c7..ed47f010 100644 --- a/install-usercss/install-usercss.js +++ b/install-usercss/install-usercss.js @@ -44,6 +44,7 @@ cm.scrollTo(scrollInfo.left, scrollInfo.top); return runtimeSend({ + id: installed.id, method: 'saveUsercss', reason: 'update', sourceCode @@ -176,7 +177,7 @@ }); return runtimeSend(request) .then(result => { - installed = true; + installed = result; $$('.warning') .forEach(el => el.remove());