Add comment back

This commit is contained in:
SolninjaA 2025-01-13 17:29:43 +10:00
parent 39e3d0e582
commit 995b8747c1

View File

@ -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