Skip to content

Commit

Permalink
Fix hardcoded server urls
Browse files Browse the repository at this point in the history
  • Loading branch information
kubrysh committed Jun 1, 2023
1 parent 79a4b8e commit 09da56e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion aptostrike/public/assets/js/main_out.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ const VIRUS_SKIN_SRC = "img/game-virus-anim.gif";

const WEBSOCKET_URL = null;
const SKIN_URL = '/assets/skins/';
const USE_HTTPS = false
const USE_HTTPS = !(localStorage.getItem("SHOULD_USE_LOCAL_DEV_SERVER") === "true"); // false when using local server
const EMPTY_NAME = 'An unnamed cell';
const QUADTREE_MAX_POINTS = 32;
const CELL_POINTS_MIN = 5;
Expand Down
4 changes: 2 additions & 2 deletions aptostrike/services/contractServers/fetchContractServers.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const fetchContractServers = async () => {
return [
{
"manager": "tz1QeiXZZmeigHxjqgzrg5XuQiZtQejLYzkM",
"server_url": "localhost:8080",
"server_url": "server.aptostrike.space",
"rooms": {},
"players": [],
"name": "Test-server-FRA",
Expand All @@ -11,7 +11,7 @@ const fetchContractServers = async () => {
},
{
"manager": "tz1QeiXZZmeigHxjqgzrg5XuQiZtQejLYzkM",
"server_url": "localhost:8080",
"server_url": "server.aptostrike.space",
"rooms": {},
"players": [],
"name": "Test-server-NYC",
Expand Down

0 comments on commit 09da56e

Please sign in to comment.