Index: lib/cssInjection.js |
diff --git a/lib/cssInjection.js b/lib/cssInjection.js |
index e5a918d54c1eef5e016a7fc80b729ce31328ebe3..30977ed1248e33c74a1ef20ed05693a02eb36eef 100644 |
--- a/lib/cssInjection.js |
+++ b/lib/cssInjection.js |
@@ -106,6 +106,9 @@ function updateFrameStyles(tabId, frameId, selectors, groupName) |
styleSheet = createStyleSheet(selectors); |
let frame = ext.getFrame(tabId, frameId); |
+ if (!frame) |
+ return false; |
+ |
if (!frame.injectedStyleSheets) |
frame.injectedStyleSheets = new Map(); |