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))
|
.catch(() => setShow(false))
|
||||||
}, [tsHost])
|
}, [tsHost])
|
||||||
|
|
||||||
const onInputHost = event => {
|
const onInputHost = ({ target: { value } }) => {
|
||||||
const host = event.target.value
|
const host = value.replace(/\/$/gi, '')
|
||||||
setTorrServerHost(host)
|
setTorrServerHost(host)
|
||||||
setTSHost(host)
|
setTSHost(host)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user