mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 21:46:11 +05:00
added regex to delete last "/" from server url in settings dialog
This commit is contained in:
@@ -40,8 +40,8 @@ export default function SettingsDialog() {
|
||||
.catch(() => setShow(false))
|
||||
}, [tsHost])
|
||||
|
||||
const onInputHost = event => {
|
||||
const host = event.target.value
|
||||
const onInputHost = ({ target: { value } }) => {
|
||||
const host = value.replace(/\/$/gi, '')
|
||||
setTorrServerHost(host)
|
||||
setTSHost(host)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user