mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-10 21:45:47 +01:00
Fix bug in last commit.
--HG-- branch : groups
This commit is contained in:
@@ -161,20 +161,22 @@ var StatusLine = Module("statusline", {
|
||||
// when session information is available, add [+] when we can go
|
||||
// backwards, [-] when we can go forwards
|
||||
let modified = "";
|
||||
if (window.getWebNavigation) {
|
||||
let sh = window.getWebNavigation().sessionHistory;
|
||||
if (sh && sh.index > 0)
|
||||
modified += "+";
|
||||
if (sh && sh.index < sh.count - 1)
|
||||
modified += "-";
|
||||
if (url === buffer.uri.spec) {
|
||||
if (window.getWebNavigation) {
|
||||
let sh = window.getWebNavigation().sessionHistory;
|
||||
if (sh && sh.index > 0)
|
||||
modified += "+";
|
||||
if (sh && sh.index < sh.count - 1)
|
||||
modified += "-";
|
||||
}
|
||||
if (modules.bookmarkcache) {
|
||||
if (bookmarkcache.isBookmarked(url))
|
||||
modified += UTF8("❤");
|
||||
//modified += UTF8("♥");
|
||||
}
|
||||
if (modules.quickmarks)
|
||||
modified += quickmarks.find(url.replace(/#.*/, "")).join("");
|
||||
}
|
||||
if (modules.bookmarkcache) {
|
||||
if (bookmarkcache.isBookmarked(url))
|
||||
modified += UTF8("❤");
|
||||
//modified += UTF8("♥");
|
||||
}
|
||||
if (modules.quickmarks)
|
||||
modified += quickmarks.find(url.replace(/#.*/, "")).join("");
|
||||
|
||||
url = losslessDecodeURI(url);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user