Connection on the current protocol used

This commit is contained in:
2022-10-14 13:46:45 +02:00
parent de32fbd5ce
commit b2f9bfa174

View File

@@ -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 {