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

Fix help links whose destination is the current page. (#169)

This commit is contained in:
Doug Kearns
2009-03-05 01:27:41 +11:00
parent 1117fc7ad0
commit 9d3a5ec939

View File

@@ -1428,7 +1428,11 @@ window.addEventListener("liberatorHelpLink", function (event) {
if (tag) if (tag)
var page = liberator.findHelp(tag); var page = liberator.findHelp(tag);
if (page) if (page)
{
elem.href = "chrome://liberator/locale/" + page; elem.href = "chrome://liberator/locale/" + page;
if (buffer.URL.replace(/#.*/, "") == elem.href.replace(/#.*/, "")) // XXX
setTimeout(function () { content.postMessage("fragmentChange", "*"); }, 0);
}
}, },
true, true); true, true);