Merge pull request #1 from DarioDarko/main

fix: auto-remove trailing slash to avoid JSON error
This commit is contained in:
SolninjaA 2025-01-24 00:59:03 +10:00 committed by GitHub
commit 888138e93b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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