diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index c54efe6..8a2342c 100755 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -37,7 +37,7 @@ import ArchivedDownloads from "./Archived"; const drawerWidth: number = 240; const socket = io( - `http://${localStorage.getItem('server-addr') || window.location.hostname}:${localStorage.getItem('server-port') || window.location.port}` + `${window.location.protocol}//${localStorage.getItem('server-addr') || window.location.hostname}:${localStorage.getItem('server-port') || window.location.port}` ) interface AppBarProps extends MuiAppBarProps {