Change: don't wait when broadcasting messages

This commit is contained in:
eight 2018-12-26 01:41:20 +08:00
parent ddd03eab1d
commit f01ec23307

View File

@ -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.