From b3a94142c357aea0fe161ab5ddc5f131ddf4e607 Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Thu, 2 Jul 2020 21:39:00 -0400 Subject: [PATCH] Allow colon on invidious options --- src/options.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/options.ts b/src/options.ts index 5309290b..814fce69 100644 --- a/src/options.ts +++ b/src/options.ts @@ -237,7 +237,7 @@ function invidiousInstanceAddInit(element: HTMLElement, option: string) { let setButton = element.querySelector(".text-change-set"); setButton.addEventListener("click", async function(e) { - if (textBox.value == "" || textBox.value.includes("/") || textBox.value.includes("http") || textBox.value.includes(":")) { + if (textBox.value == "" || textBox.value.includes("/") || textBox.value.includes("http")) { alert(chrome.i18n.getMessage("addInvidiousInstanceError")); } else { // Add this