diff --git a/frontend/src/utils/collab.ts b/frontend/src/utils/collab.ts index 80365b412..3436d2b5d 100644 --- a/frontend/src/utils/collab.ts +++ b/frontend/src/utils/collab.ts @@ -56,7 +56,7 @@ export function useCollab(storeState: CollabStoreState) { return; } - const serverUrl = `${window.location.protocol === 'https' ? 'wss' : 'ws'}://${window.location.host}/`; + const serverUrl = `${window.location.protocol === 'http:' ? 'ws' : 'wss'}://${window.location.host}/`; const wsUrl = urlJoin(serverUrl, storeState.websocketPath); storeState.perPathState.clear(); storeState.connectionState = CollabConnectionState.CONNECTING;