Skip to content

armgit / meet

Public Imported from GitHub
0

Open source video conferencing app powered by LiveKit. Built with Django and React.

♻️(frontend) extract hardcoded domain to use dynamic window origin

lebaudantoine98de4f9145e9
diff --git a/src/frontend/src/components/NotFoundScreen.tsx b/src/frontend/src/components/NotFoundScreen.tsx
index 6f7d9129..b4922a5c 100644
--- a/src/frontend/src/components/NotFoundScreen.tsx
+++ b/src/frontend/src/components/NotFoundScreen.tsx
@@ -10,8 +10,7 @@ export const NotFoundScreen = () => {
<Screen layout="centered">
<CenteredContent title={t('notFound.heading')} withBackButton>
<Text centered>
- {t('notFound.body')}{' '}
- <Bold>https://visio.numerique.gouv.fr/xxx-yyyy-zzz.</Bold>
+ {t('notFound.body')} <Bold>{window.origin}/xxx-yyyy-zzz.</Bold>
</Text>
</CenteredContent>
</Screen>
diff --git a/src/frontend/src/features/home/components/JoinMeetingDialog.tsx b/src/frontend/src/features/home/components/JoinMeetingDialog.tsx
index 33bbeee9..53ff0c82 100644
--- a/src/frontend/src/features/home/components/JoinMeetingDialog.tsx
+++ b/src/frontend/src/features/home/components/JoinMeetingDialog.tsx
@@ -23,7 +23,7 @@ export const JoinMeetingDialog = () => {
name="roomId"
label={t('joinInputLabel')}
description={t('joinInputExample', {
- example: 'https://visio.numerique.gouv.fr/azer-tyu-qsdf',
+ example: window.origin + '/azer-tyu-qsdf',
})}
validate={(value) => {
return !isRoomValid(value.trim()) ? (