Skip to content

Commit

Permalink
Update main.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Nintendoboi22 authored Oct 27, 2024
1 parent e8aef7f commit 04264eb
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions main.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,3 @@
const toggleNewTabWhenLinkPressed = document.getElementById("toggleNewTabWhenLinkPressed");

function updateLinks (toggleNewTabWhenLinkPressed) {
const links = document.querySelectorAll("a");
links.forEach((link)) => {
if (toggleNewTabWhenLinkPressed) {
link.removeAttribute("target");
} else {
link.setAttribute("target", "_blank");
}
}
}


const searchInput = document.getElementById('search-input');

Expand Down

0 comments on commit 04264eb

Please sign in to comment.