diff --git a/frontend/static/js/index.js b/frontend/static/js/index.js index ba91509..26584dc 100644 --- a/frontend/static/js/index.js +++ b/frontend/static/js/index.js @@ -19,7 +19,7 @@ import TournamentPageView from "./views/tournament/TournamentPageView.js"; import TournamentsView from "./views/tournament/TournamentsListView.js"; import TournamentCreateView from "./views/tournament/TournamentCreateView.js"; -let client = new Client(location.protocol + "//" + location.host) +let client = new Client(location.origin) let lastView = undefined let lastPageUrlBeforeLogin = undefined