From: Malte Bublitz Date: Mon, 3 Oct 2022 03:38:16 +0000 (+0200) Subject: new-tab: Syntax-Fehler ... X-Git-Url: https://git.rt3x.de/?a=commitdiff_plain;h=3852a976f084eba116018a7db7ac7f4a686af8db;p=startseite.malte70.de.git new-tab: Syntax-Fehler ... --- diff --git a/js/new-tab.js b/js/new-tab.js index 27a277b..9dde6ea 100644 --- a/js/new-tab.js +++ b/js/new-tab.js @@ -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/"); }