Merge pull request #16 from marcopeocchi/15-https-compatibility

Connection on the current protocol used
This commit is contained in:
Marco
2022-10-14 13:48:59 +02:00
committed by GitHub

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 {