Skip to content

Commit d129914

Browse files
committed
fix: host + port bug
1 parent b2465d2 commit d129914

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "league-of-pride",
3-
"version": "0.4.5",
3+
"version": "0.5.0",
44
"private": true,
55
"main": "app/background.js",
66
"repository": {

client/renderer/src/services/room.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function getUrl(endpoint: string, server?: string) {
1818

1919
function getSocketIOUrl(namespace: string) {
2020
const match = /(https?):\/\/([^/]+)(.+)?/.exec(session.server || "");
21-
if (match === null) return "//" + session.server + namespace;
21+
if (match === null) return "http://" + session.server + namespace;
2222
console.log(match)
2323

2424
const [, protocal, host, _path] = match;

0 commit comments

Comments
 (0)