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:
committed by
Dmitry Lyzo
parent
71e53b177c
commit
045c950ce6
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user