mirror of
https://github.com/SolninjaA/Chhoto-URL-Extension.git
synced 2026-11-24 05:08:27 +10:00
auto-remove trailing slash to avoid JSON error
This commit is contained in:
1 parent
c9ea5a03b3
commit
d8bb73a81b
1 file changed
+1
-1
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user