| Index: chrome/ext/background.js |
| diff --git a/chrome/ext/background.js b/chrome/ext/background.js |
| index 4681ec08bb0fbf200b337c74cd8d33e09d754c26..26e4a5afd085395f293a8fc4d695a90c16d87fca 100644 |
| --- a/chrome/ext/background.js |
| +++ b/chrome/ext/background.js |
| @@ -46,9 +46,12 @@ |
| return frame.url; |
| } |
| }, |
| - sendMessage: function(message, responseCallback) |
| + sendMessage: function(message, responseCallback, frameId) |
| { |
| - chrome.tabs.sendMessage(this.id, message, responseCallback); |
| + let options = {}; |
| + if (typeof frameId != "undefined") |
| + options.frameId = frameId; |
| + chrome.tabs.sendMessage(this.id, message, options, responseCallback); |
| } |
| }; |
| @@ -328,7 +331,7 @@ |
| contexts: item.contexts, |
| onclick: function(info, tab) |
| { |
| - item.onclick(new Page(tab)); |
| + item.onclick(new Page(tab), info); |
| } |
| }); |
| }); |