mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-05 10:45:46 +01:00
Remove some silly old cruft.
This commit is contained in:
@@ -764,14 +764,7 @@ const CommandLine = Module("commandline", {
|
|||||||
if (event.type == "click" && event.target instanceof HTMLAnchorElement) {
|
if (event.type == "click" && event.target instanceof HTMLAnchorElement) {
|
||||||
function openLink(where) {
|
function openLink(where) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
// FIXME: Why is this needed? --djk
|
dactyl.open(event.target.href, where);
|
||||||
// : It seems to be a hack so that AnchorElements
|
|
||||||
// don't need their URLs in their @href and their
|
|
||||||
// text content. I'd rather be rid of it. --Kris
|
|
||||||
if (event.target.getAttribute("href") == "#")
|
|
||||||
dactyl.open(event.target.textContent, where);
|
|
||||||
else
|
|
||||||
dactyl.open(event.target.href, where);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (key) {
|
switch (key) {
|
||||||
|
|||||||
Reference in New Issue
Block a user