Changes to connection system to support docker

This commit is contained in:
Karmaa
2025-03-12 17:44:53 -05:00
parent 1f9daa4e85
commit f7cdeb94f7
5 changed files with 16 additions and 9 deletions

View File

@@ -10,7 +10,7 @@ if (socket === null) {
? "http://localhost:8082"
: "/",
{
path: "/database-socket.io/",
path: window.location.hostname === "localhost" ? "/" : "/database-socket.io/",
transports: ["websocket", "polling"],
}
);