mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-21 04:57:59 +01:00
Fix help links whose destination is the current page. (#169)
This commit is contained in:
@@ -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);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user