aboutsummaryrefslogtreecommitdiffstats
path: root/background_scripts/main.coffee
diff options
context:
space:
mode:
authorStephen Blott2016-03-26 10:44:22 +0000
committerStephen Blott2016-03-26 12:06:34 +0000
commit24d305500b4fd3574ed31cff33b177f42cd88457 (patch)
tree731a6c8901359a28de80278e41ec1e4408e1803d /background_scripts/main.coffee
parent135de62c2fecea4eb1ef07c155d339c609b6ad1c (diff)
downloadvimium-24d305500b4fd3574ed31cff33b177f42cd88457.tar.bz2
Get frameId in background page.
Diffstat (limited to 'background_scripts/main.coffee')
-rw-r--r--background_scripts/main.coffee2
1 files changed, 1 insertions, 1 deletions
diff --git a/background_scripts/main.coffee b/background_scripts/main.coffee
index 06788ee4..79c3b005 100644
--- a/background_scripts/main.coffee
+++ b/background_scripts/main.coffee
@@ -68,7 +68,7 @@ chrome.runtime.onConnect.addListener (port, name) ->
port.onMessage.addListener portHandlers[port.name] port.sender, port
chrome.runtime.onMessage.addListener((request, sender, sendResponse) ->
- request = extend {count: 1}, extend request, tab: sender.tab, tabId: sender.tab.id
+ request = extend {count: 1, frameId: sender.frameId}, extend request, tab: sender.tab, tabId: sender.tab.id
if (sendRequestHandlers[request.handler])
sendResponse(sendRequestHandlers[request.handler](request, sender))
# Ensure the sendResponse callback is freed.