1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-21 05:07:59 +01:00

Fixed the method of getting href.

This commit is contained in:
anekos
2009-01-13 00:21:15 +09:00
parent 853b03ba4d
commit 2bed184abb

View File

@@ -1405,8 +1405,8 @@ function CommandLine() //{{{
{
event.preventDefault();
let target = event.button == 0 ? liberator.CURRENT_TAB : liberator.NEW_TAB;
if (event.target.href == "#")
liberator.open(String(event.target), target);
if (event.target.getAttribute("href") == "#")
liberator.open(event.target.textContent, target);
else
liberator.open(event.target.href, target);
}