diff options
| author | Stephen Blott | 2014-11-23 16:05:01 +0000 | 
|---|---|---|
| committer | Stephen Blott | 2014-11-23 16:05:01 +0000 | 
| commit | d10229e391c6b8c938da4ac71fe1ac968e21c5a0 (patch) | |
| tree | df0fa4d0b12b2e9139edf1290dbdcf593a494418 /background_scripts/main.coffee | |
| parent | 76d3e7bc391542655c6a4ac25ef44c75aa1f0b12 (diff) | |
| download | vimium-d10229e391c6b8c938da4ac71fe1ac968e21c5a0.tar.bz2 | |
Frames; just add new frames to the end.
We don't need to worry where frames are added, nextFrame will find the
right frame to start from anyway.
Diffstat (limited to 'background_scripts/main.coffee')
| -rw-r--r-- | background_scripts/main.coffee | 6 | 
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 | 
