From 831a4ef93951206ee9497578c898b51b2dd2b7fb Mon Sep 17 00:00:00 2001 From: eight Date: Mon, 16 Oct 2017 14:59:45 +0800 Subject: [PATCH] Fix: remove logging in wrapReject --- background/usercss-helper.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/background/usercss-helper.js b/background/usercss-helper.js index eda62a50..84c2e5e9 100644 --- a/background/usercss-helper.js +++ b/background/usercss-helper.js @@ -24,10 +24,7 @@ var usercssHelper = (function () { function wrapReject(pending) { return pending.then(result => ({status: 'success', result})) - .catch(err => { - console.error(err); - return {status: 'error', result: err.message || String(err)}; - }); + .catch(err => ({status: 'error', result: err.message || String(err)})); } // Parse the source and find the duplication