v1.2.0 - Change innerHTML to innerText

This commit is contained in:
Solninja A 2025-01-27 14:37:25 +10:00
parent ebe07d8f8b
commit 7cc4710e45

View File

@ -81,10 +81,10 @@ shortURLEle.oninput = (event) => {
// And if the configured host is not undefined // And if the configured host is not undefined
if (chhotoHost !== undefined) { if (chhotoHost !== undefined) {
// Inform the user // Inform the user
messageEle.innerHTML = `The short URL will be generated as: ${chhotoHost}/${shortURLText}.`; messageEle.innerText = `The short URL will be generated as: ${chhotoHost}/${shortURLText}.`;
} else { } else {
// If the configured host is undefined // If the configured host is undefined
messageEle.innerHTML = "The Chhoto URL host has not been configured. Cannot generate shortened URL."; messageEle.innerText = "The Chhoto URL host has not been configured. Cannot generate shortened URL.";
} }
// Set the short URL // Set the short URL