mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 23:07: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)
|
||||
var page = liberator.findHelp(tag);
|
||||
if (page)
|
||||
{
|
||||
elem.href = "chrome://liberator/locale/" + page;
|
||||
if (buffer.URL.replace(/#.*/, "") == elem.href.replace(/#.*/, "")) // XXX
|
||||
setTimeout(function () { content.postMessage("fragmentChange", "*"); }, 0);
|
||||
}
|
||||
},
|
||||
true, true);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user