1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 04:07:58 +01:00

Get rid of some 'config.name' checks in the common tree. These should all, ideally, go.

This commit is contained in:
Kris Maglione
2009-03-22 02:25:05 -04:00
parent c35cca159f
commit cf57844986
7 changed files with 59 additions and 48 deletions

View File

@@ -2077,22 +2077,24 @@ function StatusLine() //{{{
}
// when session information is available, add [+] when we can go backwards
if (config.name == "Vimperator")
let modified = "";
if (window.getWebNavigation)
{
let sh = window.getWebNavigation().sessionHistory;
let modified = "";
if (sh.index > 0)
modified += "+";
if (sh.index < sh.count -1)
modified += "-";
}
if (liberator.has("bookmarks")) {
if (bookmarks.isBookmarked(buffer.URL))
modified += "\u2764"; // a heart symbol: ❤
//modified += "\u2665"; // a heart symbol: ♥
if (modified)
url += " [" + modified + "]";
}
if (modified)
url += " [" + modified + "]";
urlWidget.value = url;
},