Compare commits

...

2 Commits

Author SHA1 Message Date
SolninjaA
888138e93b
Merge pull request #1 from DarioDarko/main
fix: auto-remove trailing slash to avoid JSON error
2025-01-24 00:59:03 +10:00
DarioDarko
d8bb73a81b auto-remove trailing slash to avoid JSON error 2025-01-23 15:51:14 +01:00

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)