new-tab: Syntax-Fehler ...
authorMalte Bublitz <malte@rolltreppe3.de>
Mon, 3 Oct 2022 03:38:16 +0000 (05:38 +0200)
committerMalte Bublitz <malte@rolltreppe3.de>
Mon, 3 Oct 2022 03:38:16 +0000 (05:38 +0200)
js/new-tab.js

index 27a277b2c798c479cc45ccc1c6fed0e27c6e59ca..9dde6eab36d03302642412baae220030a7a6392b 100644 (file)
@@ -37,7 +37,7 @@ window.onload = function() {
                        console.debug('location.href = document.querySelector("input[type=search]").value;')
                        location.href = document.querySelector("input[type=search]").value;
                        event.preventDefault();
-               } elseif (document.querySelector("input[type=search]").value.startsWith("gemini://")) {
+               } else if (document.querySelector("input[type=search]").value.startsWith("gemini://")) {
                        console.debug("Redirecting to Gemini Proxy…");
                        location.href = 'https://portal.mozz.us/gemini/' + document.querySelector("input[type=search]").value.replace("gemini://", "https://portal.mozz.us/gemini/");
                }