Skip to content

Commit

Permalink
fix standalone link opening
Browse files Browse the repository at this point in the history
  • Loading branch information
4itor committed Jul 16, 2024
1 parent b384250 commit e752252
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -247,16 +247,6 @@
window.open(enlace, '_self'); // Abre el enlace en la ventana actual
}

function buscarEnGoogle(query, lucky = false) {
if (lucky) {
const url = `https://duckduckgo.com/?q=!ducky+${encodeURIComponent(query)}`;
window.open(url, '_self');
} else {
const url = `https://www.google.com/search?q=${encodeURIComponent(query)}`;
window.open(url, '_blank');
}
}

function googleSearch(query) {
const url = `https://www.google.com/search?q=${encodeURIComponent(query)}`;
window.open(url, '_blank');
Expand Down Expand Up @@ -285,8 +275,8 @@
selectedPos = (selectedPos - 1 + iconos.length) % iconos.length;
} while (iconos[selectedPos].classList.contains('discarded'));
destacarSeleccionado();
} else if (e.key === 'Enter') {
abrirEnlaceSeleccionado();
// } else if (e.key === 'Enter') {
// abrirEnlaceSeleccionado();
} else if (e.ctrlKey && (e.key === 'h' || e.key === 'H')) {
e.preventDefault();
filterText = '';
Expand Down

0 comments on commit e752252

Please sign in to comment.