mirror of
https://github.com/fergalmoran/chrometophone.git
synced 2025-12-22 09:41:51 +00:00
Use tab.url (works if the page doesn't reflect the changed URL; also fixes an issue with Maps not getting navigation information)
This commit is contained in:
@@ -16,7 +16,6 @@
|
||||
|
||||
var additionalInfo = {
|
||||
"title": document.title,
|
||||
"url": document.location.href,
|
||||
"selection": window.getSelection().toString()
|
||||
};
|
||||
|
||||
|
||||
@@ -77,7 +77,7 @@ chrome.extension.onConnect.addListener(function(port) {
|
||||
if (info.selection.length > max_length) {
|
||||
info.selection = info.selection.substring(0, max_length);
|
||||
}
|
||||
sendToPhone(info.title, info.url, info.selection);
|
||||
sendToPhone(info.title, tab.url, info.selection);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user