Show Windows privacy hints in launcher

The launcher sentence around the room name was replaced
by a standalone instruction ("meetingText"); the room name
now sits on its own line below it.

Windows users additionally get camera/microphone
permission instructions in the launcher view. The block
reuses the existing i18n/OS detection and only appears
when translations loaded, so a failed i18n.json fetch
cannot render an empty box.
This commit is contained in:
stefan.tollkuehn committed 2026-11-05 16:36:43 +01:00
1 parent f746508d90
commit 7961732323
4 files changed
+134 -15

No files matched your search

+24
View File
@@ -426,6 +426,7 @@ const iosLink = document.getElementById("iosLink");
const androidLink = document.getElementById("androidLink");
const createNewMeetingButton = document.getElementById("createNewMeetingButton");
const createNewFromLauncherButton = document.getElementById("createNewFromLauncherButton");
const privacyInfo = document.getElementById("privacyInfo");
/* Meeting Creator DOM elements */
const meetingNameInput = document.getElementById("meetingName");
@@ -1399,6 +1400,27 @@ function cancelCreateMeeting() {
* ============================================================
*/
/* ============================================================
* SHOW LAUNCHER
* ============================================================ */
/*
* Camera/microphone hints (meetingPrivacySettings in
* i18n.json) only matter on Windows – and only with
* loaded translations, otherwise the box would be empty.
*/
function showPrivacyInfo() {
if (detectOperatingSystem() !== OS_NAMES.Windows) {
return;
}
if (getTranslation("meetingPrivacySettings.title") === null) {
return;
}
privacyInfo.classList.remove("hidden");
}
function initialize() {
const room = getRoom();
@@ -1460,6 +1482,8 @@ function initialize() {
*/
launcher.classList.remove("hidden");
showPrivacyInfo();
/*
* Hide the "Create New Meeting" button when a valid room is specified
*/