Index: ext/background.js |
diff --git a/ext/background.js b/ext/background.js |
index bb935066d52b662225d45000313205ec6cbbce90..723758e1522d2858636e21ab627c2a754a78cdad 100644 |
--- a/ext/background.js |
+++ b/ext/background.js |
@@ -96,9 +96,12 @@ |
return frame.url; |
} |
}, |
- sendMessage(message, responseCallback) |
+ sendMessage(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); |
} |
}; |
@@ -449,7 +452,7 @@ |
contexts: item.contexts, |
onclick(info, tab) |
{ |
- item.onclick(new Page(tab)); |
+ item.onclick(new Page(tab), info); |
} |
}); |
}); |