Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
Removes guest parameter when navigating to close page.
damencho4ebefb17e9e6
diff --git a/close.html b/close.htmlindex c5f60f4067..14de8c33fd 100644--- a/close.html+++ b/close.html@@ -3,7 +3,6 @@<link rel="stylesheet" href="css/all.css"/><!--#include virtual="title.html" --><script><!--#include virtual="/interface_config.js" --></script>- <script src="utils.js?v=1"></script><script src="close.js"></script></head><body>diff --git a/close.js b/close.jsindex 8845986e14..6e9a48c4fe 100644--- a/close.js+++ b/close.js@@ -1,4 +1,4 @@-/* global interfaceConfig, getConfigParamsFromUrl */+/* global interfaceConfig *///list of tipsvar hints = ["You can pin participants by clicking on their thumbnails.",// jshint ignore:line@@ -45,8 +45,7 @@ function onLoad() {// If there is a setting show a special message only for the guestsif (interfaceConfig.CLOSE_PAGE_GUEST_HINT) {- let params = getConfigParamsFromUrl('search');- if ( params.guest ) {+ if ( window.sessionStorage.getItem('guest') === 'true' ) {var element = document.getElementById('hintQuestion');element.classList.add('hide');insertTextMsg('hintMessage', interfaceConfig.CLOSE_PAGE_GUEST_HINT);diff --git a/close2.html b/close2.htmlindex e0606ad722..f2bd011b90 100644--- a/close2.html+++ b/close2.html@@ -3,7 +3,6 @@<link rel="stylesheet" href="css/all.css"/><!--#include virtual="title.html" --><script><!--#include virtual="/interface_config.js" --></script>- <script src="utils.js?v=1"></script><script src="close.js"></script></head><body>diff --git a/conference.js b/conference.jsindex 116176d362..cc1db96eb2 100644--- a/conference.js+++ b/conference.js@@ -195,12 +195,13 @@ function muteLocalVideo (muted) {function maybeRedirectToWelcomePage(options) {// if close page is enabled redirect to it, without further actionif (config.enableClosePage) {+ // save whether current user is guest or not, before navigating+ // to close page+ window.sessionStorage.setItem('guest', APP.tokenData.isGuest);if (options.feedbackSubmitted)- window.location.pathname = "close.html?guest="- + APP.tokenData.isGuest;+ window.location.pathname = "close.html";else- window.location.pathname = "close2.html?guest="- + APP.tokenData.isGuest;+ window.location.pathname = "close2.html";return;}