diff --git a/options.js b/options.js index 86b21b4..bac047a 100644 --- a/options.js +++ b/options.js @@ -68,6 +68,7 @@ hostKeyEle.oninput = (event) => { // Remove the "warning" class messageEle.classList.remove("warning"); } catch (err) { + // If the URL is NOT invalid because of a TypeError if (err.name !== "TypeError") { messageEle.classList.add("warning"); // Else, remove warning