diff --git a/main.js b/main.js index 2f1c090..e08ae65 100644 --- a/main.js +++ b/main.js @@ -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');