Skip to content

Commit

Permalink
fix(ui): Protocol equal to https: then wss
Browse files Browse the repository at this point in the history
  • Loading branch information
pando85 committed Feb 1, 2024
1 parent 7782b03 commit 9f1a3f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/web/ui/src/JobTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ const JobTable: React.FC<JobTableProps> = ({ token, setShowJobTable, setErrorTex
const dispatch = useDispatch();
const jobs: Job[] = useSelector((state: RootState) => state.jobs);

const protocol = window.location.protocol === "https" ? "wss" : "ws";
const protocol = window.location.protocol === "https:" ? "wss" : "ws";
const wsURL = `${protocol}://${window.location.hostname}:${window.location.port}/ws/job?token=${token}`;

// TODO: reconnect when ReadyState.CLOSED
Expand Down

0 comments on commit 9f1a3f2

Please sign in to comment.