Handle port change

This commit is contained in:
2022-06-15 13:20:24 +02:00
parent b6ff444526
commit 1c706db799
4 changed files with 39 additions and 11 deletions

View File

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