Skip to content

Commit

Permalink
Make the server field ignore the trailing slash.
Browse files Browse the repository at this point in the history
Useful on the tizen build, if a trailing slash is added the error message is not helping.
  • Loading branch information
d3xt3r01 committed Feb 14, 2024
1 parent 3b31d77 commit abb63df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/session/addServer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit abb63df

Please sign in to comment.