mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-04-17 04:13:31 +02:00
Fix bug in last commit.
--HG-- branch : groups
This commit is contained in:
@@ -58,7 +58,6 @@ var Browser = Module("browser", XPCOM(Ci.nsISupportsWeakReference, ModuleBase),
|
|||||||
|
|
||||||
events: {
|
events: {
|
||||||
DOMContentLoaded: function onDOMContentLoaded(event) {
|
DOMContentLoaded: function onDOMContentLoaded(event) {
|
||||||
util.dump("DOMContentLoaded");
|
|
||||||
let doc = event.originalTarget;
|
let doc = event.originalTarget;
|
||||||
if (doc instanceof HTMLDocument)
|
if (doc instanceof HTMLDocument)
|
||||||
this._triggerLoadAutocmd("DOMLoad", doc);
|
this._triggerLoadAutocmd("DOMLoad", doc);
|
||||||
@@ -68,7 +67,6 @@ var Browser = Module("browser", XPCOM(Ci.nsISupportsWeakReference, ModuleBase),
|
|||||||
// event listener which is is called on each page load, even if the
|
// event listener which is is called on each page load, even if the
|
||||||
// page is loaded in a background tab
|
// page is loaded in a background tab
|
||||||
load: function onLoad(event) {
|
load: function onLoad(event) {
|
||||||
util.dump("onLoad");
|
|
||||||
let doc = event.originalTarget;
|
let doc = event.originalTarget;
|
||||||
if (doc instanceof Document)
|
if (doc instanceof Document)
|
||||||
dactyl.initDocument(doc);
|
dactyl.initDocument(doc);
|
||||||
|
|||||||
@@ -161,6 +161,7 @@ var StatusLine = Module("statusline", {
|
|||||||
// when session information is available, add [+] when we can go
|
// when session information is available, add [+] when we can go
|
||||||
// backwards, [-] when we can go forwards
|
// backwards, [-] when we can go forwards
|
||||||
let modified = "";
|
let modified = "";
|
||||||
|
if (url === buffer.uri.spec) {
|
||||||
if (window.getWebNavigation) {
|
if (window.getWebNavigation) {
|
||||||
let sh = window.getWebNavigation().sessionHistory;
|
let sh = window.getWebNavigation().sessionHistory;
|
||||||
if (sh && sh.index > 0)
|
if (sh && sh.index > 0)
|
||||||
@@ -175,6 +176,7 @@ var StatusLine = Module("statusline", {
|
|||||||
}
|
}
|
||||||
if (modules.quickmarks)
|
if (modules.quickmarks)
|
||||||
modified += quickmarks.find(url.replace(/#.*/, "")).join("");
|
modified += quickmarks.find(url.replace(/#.*/, "")).join("");
|
||||||
|
}
|
||||||
|
|
||||||
url = losslessDecodeURI(url);
|
url = losslessDecodeURI(url);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user