1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Make the server field ignore the trailing slash.

Useful on the tizen build, if a trailing slash is added the error message is not helping.
This commit is contained in:
Adrian Sandu 2024-02-14 14:22:13 +02:00 committed by Dmitry Lyzo
parent 71e53b177c
commit 045c950ce6

View file

@ -36,7 +36,7 @@ function handleConnectionResult(page, result) {
function submitServer(page) {
loading.show();
const host = page.querySelector('#txtServerHost').value;
const host = page.querySelector('#txtServerHost').value.replace(/\/+$/, '');
ServerConnections.connectToAddress(host, {
enableAutoLogin: appSettings.enableAutoLogin()
}).then(function(result) {