first start wrong port fix

This commit is contained in:
2022-06-15 13:43:41 +02:00
parent 1c706db799
commit 1248332fb4

View File

@@ -36,7 +36,7 @@ import ArchivedDownloads from "./Archived";
const drawerWidth: number = 240;
const socket = io(`http://${localStorage.getItem('server-addr') || 'localhost'}:${localStorage.getItem('server-port') || '3022'}`)
const socket = io(`http://${localStorage.getItem('server-addr') || window.location.hostname}:${localStorage.getItem('server-port') || window.location.port}`)
interface AppBarProps extends MuiAppBarProps {
open?: boolean;