feat(deployment-urls): Whitelist deploymentUrls; remove JaaS restriction

This commit is contained in:
Horatiu Muresan 2022-06-09 15:09:34 +03:00
parent aee94ad6fb
commit 3026c8d0db
3 changed files with 3 additions and 2 deletions

View File

@ -83,6 +83,7 @@ export default [
'debugAudioLevels',
'defaultLocalDisplayName',
'defaultRemoteDisplayName',
'deploymentUrls',
'desktopSharingFrameRate',
'desktopSharingSources',
'disable1On1Mode',

View File

@ -48,7 +48,7 @@ class DownloadButton extends AbstractButton<Props, *> {
*/
function _mapStateToProps(state: Object) {
const { downloadAppsUrl } = state['features/base/config'].deploymentUrls || {};
const visible = typeof downloadAppsUrl === 'string' && !isVpaasMeeting(state);
const visible = typeof downloadAppsUrl === 'string';
return {
_downloadAppsUrl: downloadAppsUrl,

View File

@ -50,7 +50,7 @@ class HelpButton extends AbstractButton<Props, *> {
function _mapStateToProps(state: Object) {
const { userDocumentationURL } = state['features/base/config'].deploymentUrls || {};
const enabled = getFeatureFlag(state, HELP_BUTTON_ENABLED, true);
const visible = typeof userDocumentationURL === 'string' && enabled && !isVpaasMeeting(state);
const visible = typeof userDocumentationURL === 'string' && enabled;
return {
_userDocumentationURL: userDocumentationURL,