1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-24 10:03:32 +01:00

Make buffer.URL a string again. Use buffer.uri and buffer.documentURI internally. Fix loading Object stores.

This commit is contained in:
Kris Maglione
2011-01-16 12:14:43 -05:00
parent 7d178cfb34
commit 5b56624043
10 changed files with 42 additions and 35 deletions

View File

@@ -120,7 +120,7 @@ var StatusLine = Module("statusline", {
* respectively.
*
* @param {string} url The URL to display.
* @default buffer.URL
* @default buffer.uri
*/
updateUrl: function updateUrl(url) {
// ripped from Firefox; modified
@@ -155,7 +155,7 @@ var StatusLine = Module("statusline", {
// TODO: this probably needs a more general solution.
if (url == null)
url = buffer.URL.spec;
url = buffer.uri.spec;
// when session information is available, add [+] when we can go
// backwards, [-] when we can go forwards
@@ -168,7 +168,7 @@ var StatusLine = Module("statusline", {
modified += "-";
}
if (modules.bookmarks) {
if (bookmarks.isBookmarked(buffer.URL))
if (bookmarks.isBookmarked(buffer.uri))
modified += UTF8("❤");
//modified += UTF8("♥");
}