feat: dotykové ovládání miniher na mobilu a tabletu
CI / Generate TypeScript types (push) Successful in 13s
CI / Server unit tests (push) Successful in 27s
CI / Build server (push) Successful in 33s
CI / Build client (push) Successful in 42s
CI / Playwright E2E tests (push) Successful in 1m54s
CI / Build and push Docker image (push) Successful in 46s
CI / Notify (push) Successful in 2s

This commit is contained in:
batmanisko committed 2026-10-20 14:43:49 +02:00
1 parent a8b67fd76e
commit d2125a050b
18 files changed
+503 -63

No files matched your search

+2 -1
View File
@@ -4,7 +4,8 @@ import socketio from "socket.io-client";
let socketUrl;
let socketPath;
if (process.env.NODE_ENV === 'development') {
socketUrl = `http://localhost:3001`;
// Stejný stroj jako stránka, aby šlo vývojovou verzi zkoušet i z telefonu či tabletu v síti
socketUrl = `http://${globalThis.location.hostname}:3001`;
socketPath = undefined;
} else {
socketUrl = `${globalThis.location.host}`;