Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
Fixed join code copy to clipboard (#404)
Browse files Browse the repository at this point in the history
* fixed join code copy

* removed :
  • Loading branch information
Vucis authored May 23, 2024
1 parent 37606d4 commit 92242cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/Courses/CourseDetailTeacher.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ function JoinCodeMenu({
const handleCopyToClipboard = (join_code: string) => {
const host = window.location.host;
navigator.clipboard.writeText(
`${host}/${i18next.resolvedLanguage}/courses/join?code=${join_code}`
`${window.location.protocol}//${host}/${i18next.resolvedLanguage}/courses/join?code=${join_code}`
);
};

Expand Down

0 comments on commit 92242cd

Please sign in to comment.