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:
@@ -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