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);