diff options
| -rw-r--r-- | background_scripts/main.coffee | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/background_scripts/main.coffee b/background_scripts/main.coffee index 1b965314..ffed4d2d 100644 --- a/background_scripts/main.coffee +++ b/background_scripts/main.coffee @@ -602,7 +602,8 @@ unregisterFrame = (request, sender) -> # When a tab is closing, Chrome sometimes passes messages without sender.tab. Therefore, we guard against # this. tabId = sender.tab?.id - if tabId? and frameIdsForTab[tabId]? + return unless tabId? + if frameIdsForTab[tabId]? if request.tab_is_closing updateOpenTabs sender.tab, true else |
