1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-24 19:25:52 +01:00

Fix status line highlighting.

This commit is contained in:
Kris Maglione
2010-09-25 17:27:16 -04:00
parent 9bcd60cb52
commit 95be03098a

View File

@@ -10,7 +10,8 @@
const StatusLine = Module("statusline", { const StatusLine = Module("statusline", {
init: function () { init: function () {
this._statusBar = document.getElementById("addon-bar") || document.getElementById("status-bar"); this._statusLine = document.getElementById("status-bar");
this._statusBar = document.getElementById("addon-bar") || this._statusLine;
this._statusBar.collapsed = true; // it is later restored unless the user sets laststatus=0 this._statusBar.collapsed = true; // it is later restored unless the user sets laststatus=0
// our status bar fields // our status bar fields
@@ -47,7 +48,7 @@ const StatusLine = Module("statusline", {
insecure: "StatusLine" insecure: "StatusLine"
}; };
highlight.highlightNode(this._statusBar, highlightGroup[type]); highlight.highlightNode(this._statusLine, highlightGroup[type]);
}, },
// update all fields of the statusline // update all fields of the statusline