From 3852a976f084eba116018a7db7ac7f4a686af8db Mon Sep 17 00:00:00 2001 From: Malte Bublitz Date: Mon, 3 Oct 2022 05:38:16 +0200 Subject: [PATCH] new-tab: Syntax-Fehler ... --- js/new-tab.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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/"); } -- 2.30.2