Merge pull request #1 from DarioDarko/main

fix: auto-remove trailing slash to avoid JSON error
This commit is contained in:
SolninjaA authored and GitHub committed 2025-01-24 00:59:03 +10:00
commit 888138e93b
1 file changed
+1 -1
+1 -1
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)