Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(background-alpha) Fix setting background opacity

Horatiu Muresan00d68f08abc4
diff --git a/modules/UI/UI.js b/modules/UI/UI.js
index eb065304d3..9b97d68912 100644
--- a/modules/UI/UI.js
+++ b/modules/UI/UI.js
@@ -108,13 +108,13 @@ UI.start = function() {
$('body').addClass('mobile-browser');
} else {
$('body').addClass('desktop-browser');
+ }
- if (config.backgroundAlpha !== undefined) {
- const backgroundColor = $('body').css('background-color');
- const alphaColor = setColorAlpha(backgroundColor, config.backgroundAlpha);
+ if (config.backgroundAlpha !== undefined) {
+ const backgroundColor = $('body').css('background-color');
+ const alphaColor = setColorAlpha(backgroundColor, config.backgroundAlpha);
- $('body').css('background-color', alphaColor);
- }
+ $('body').css('background-color', alphaColor);
}
if (config.iAmRecorder) {
diff --git a/react/features/conference/components/web/Conference.js b/react/features/conference/components/web/Conference.js
index 5cd90ff7ba..6c47ca179b 100644
--- a/react/features/conference/components/web/Conference.js
+++ b/react/features/conference/components/web/Conference.js
@@ -229,13 +229,13 @@ class Conference extends AbstractConference<Props, *> {
id = 'layout_wrapper'
onMouseEnter = { this._onMouseEnter }
onMouseLeave = { this._onMouseLeave }
- onMouseMove = { this._onMouseMove } >
+ onMouseMove = { this._onMouseMove }
+ ref = { this._setBackground }>
<Chat />
<div
className = { clsx(_layoutClassName, _showStageFilmstrip && 'stage-filmstrip') }
id = 'videoconference_page'
- onMouseMove = { isMobileBrowser() ? undefined : this._onShowToolbar }
- ref = { this._setBackground }>
+ onMouseMove = { isMobileBrowser() ? undefined : this._onShowToolbar }>
<ConferenceInfo />
<Notice />
<div