| Index: chrome/ext/background.js |
| diff --git a/chrome/ext/background.js b/chrome/ext/background.js |
| index 4681ec08bb0fbf200b337c74cd8d33e09d754c26..adb89347f07ba9b48e74fcc6b89dbcd1b05c0df5 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 (frameId != undefined) |
|
Sebastian Noack
2017/01/11 18:15:11
Please use typeof to check for undefined, like we
kzar
2017/01/12 07:24:04
Whoops, Done.
|
| + options.frameId = frameId; |
|
Sebastian Noack
2017/01/11 18:15:11
This isn't supported in Microsoft Edge. Regardless
kzar
2017/01/12 07:24:04
Damn, looking at the docs it seems like you're rig
|
| + 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); |
| } |
| }); |
| }); |