From 52b7742a45e35db39d081bd5996b5421b930ba09 Mon Sep 17 00:00:00 2001 From: eight Date: Wed, 26 Dec 2018 20:51:21 +0800 Subject: [PATCH] Change: don't wait when broadcasting messages (#622) --- background/style-manager.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/background/style-manager.js b/background/style-manager.js index 25f649b8..b12b4231 100644 --- a/background/style-manager.js +++ b/background/style-manager.js @@ -290,8 +290,8 @@ const styleManager = (() => { style.data = data; method = 'styleUpdated'; } - return broadcastStyleUpdated(data, reason, method, codeIsUpdated) - .then(() => data); + broadcastStyleUpdated(data, reason, method, codeIsUpdated); + return data; } // get styles matching a URL, including sloppy regexps and excluded items.