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

Merge pull request #5205 from d3xt3r01/patch-1

Make the server field ignore the trailing slash
This commit is contained in:
Bill Thornton 2024-03-06 18:31:33 -05:00 committed by GitHub
commit 9b2d337601
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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