auto-remove trailing slash to avoid JSON error

This commit is contained in:
DarioDarko 2025-01-23 15:51:14 +01:00
parent c9ea5a03b3
commit d8bb73a81b

View File

@ -55,7 +55,7 @@ hostKeyEle.oninput = (event) => {
}
// Get the Chhoto URL host
const chhotoHost = hostKeyEle.value;
const chhotoHost = hostKeyEle.value.replace(/\/$/, '');
// Catch the exception from the URL constructor
// (this always activates because as the user begins typing, the URL is invalid)