From 6629b8623376398ece820bda1b271a6b8b5aaa60 Mon Sep 17 00:00:00 2001 From: eight Date: Thu, 18 Oct 2018 18:25:23 +0800 Subject: [PATCH] Fix: TypeError in style-via-api --- background/style-via-api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/background/style-via-api.js b/background/style-via-api.js index 5a2c2d3c..53b98345 100644 --- a/background/style-via-api.js +++ b/background/style-via-api.js @@ -157,7 +157,7 @@ API_METHODS.styleViaAPI = !CHROME && (() => { return; } const tabFrames = cache.get(tabId); - if (frameId in tabFrames) { + if (tabFrames && frameId in tabFrames) { delete tabFrames[frameId]; if (isEmpty(tabFrames)) { onTabRemoved(tabId);