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:
burke.davey
2010-05-24 17:20:56 +00:00
parent 006c846e99
commit a7a33444f8
2 changed files with 1 additions and 2 deletions

View File

@@ -16,7 +16,6 @@
var additionalInfo = {
"title": document.title,
"url": document.location.href,
"selection": window.getSelection().toString()
};

View File

@@ -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);
});
});