subscribing to events

This commit is contained in:
2021-05-22 22:36:13 +02:00
parent 1f49ef9f67
commit 998e93968f
2 changed files with 68 additions and 15 deletions

@ -33,7 +33,7 @@ usimp.chooseDomainServer = function (domainServers, invalidDomainServers = []) {
}
usimp.login = function (domainServer, domain, account, password) {
return fetch('http://' + domainServer.host + ':' + domainServer.protocols.http + '/_usimp/authenticate', {
return fetch(`http://${domainServer.host}:${domainServer.protocols.http}/_usimp/authenticate`, {
method: 'POST',
headers: {
'Content-Type': 'application/json',