mirror of
https://github.com/SolninjaA/Chhoto-URL-Extension.git
synced 2025-02-27 18:29:33 +10:00
Merge pull request #1 from DarioDarko/main
fix: auto-remove trailing slash to avoid JSON error
This commit is contained in:
commit
888138e93b
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user