1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-21 11:27:58 +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(); event.preventDefault();
let target = event.button == 0 ? liberator.CURRENT_TAB : liberator.NEW_TAB; let target = event.button == 0 ? liberator.CURRENT_TAB : liberator.NEW_TAB;
if (event.target.href == "#") if (event.target.getAttribute("href") == "#")
liberator.open(String(event.target), target); liberator.open(event.target.textContent, target);
else else
liberator.open(event.target.href, target); liberator.open(event.target.href, target);
} }