mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-17 04:02:31 +02:00
Fixed the method of getting href.
This commit is contained in:
1 parent
853b03ba4d
commit
2bed184abb
1 file changed
+2
-2
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user