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();
|
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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user