Fix: TypeError in style-via-api (#521)
This commit is contained in:
parent
5cbe8a8d78
commit
100e1dc28d
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user