Skip to content

Commit

Permalink
Allow https urls to be passed to lobby (#350)
Browse files Browse the repository at this point in the history
  • Loading branch information
lehaSVV2009 authored and nicolodavis committed Jan 25, 2019
1 parent 4d1d3cd commit a285fbf
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/lobby/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@ class _LobbyConnectionImpl {
}

_baseUrl() {
if (this.server) {
return `http://${this.server}/games`;
}
return '/games';
return `${this.server || ''}/games`;
}

async refresh() {
Expand Down

0 comments on commit a285fbf

Please sign in to comment.