aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--background_scripts/main.coffee6
1 files changed, 3 insertions, 3 deletions
diff --git a/background_scripts/main.coffee b/background_scripts/main.coffee
index 27800ce6..722091a4 100644
--- a/background_scripts/main.coffee
+++ b/background_scripts/main.coffee
@@ -600,9 +600,9 @@ openOptionsPageInNewTab = ->
chrome.tabs.create({ url: chrome.runtime.getURL("pages/options.html"), index: tab.index + 1 }))
registerFrame = (request, sender) ->
- frames = frameIdsForTab[sender.tab.id] ?= []
- unless request.is_frameset # Don't store frameset containers; focusing them is no use.
- if request.is_top then frames.unshift request.frameId else frames.push request.frameId
+ frameIdsForTab[sender.tab.id] ?= []
+ # Don't store frameset containers; focusing them is no use.
+ frameIdsForTab[sender.tab.id].push request.frameId unless request.is_frameset
unregisterFrame = (request, sender) ->
tabId = sender.tab.id