From b9968830d3f866688eaff4824d0ce47647265de0 Mon Sep 17 00:00:00 2001 From: eight Date: Sun, 14 Oct 2018 00:38:49 +0800 Subject: [PATCH] Fix: don't send null value --- background/style-manager.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/background/style-manager.js b/background/style-manager.js index 260a5a47..81336887 100644 --- a/background/style-manager.js +++ b/background/style-manager.js @@ -331,7 +331,10 @@ const styleManager = (() => { ); } if (id) { - return {[id]: cache.sections[id]}; + if (cache.sections[id]) { + return {[id]: cache.sections[id]}; + } + return {}; } return cache.sections;