mirror of https://github.com/OpenVidu/openvidu.git
ov-components: apply background from storage based on background effects button status
parent
fe606cbf15
commit
b7d9f822de
|
@ -181,8 +181,10 @@ export class SessionComponent implements OnInit, OnDestroy {
|
|||
set layoutContainer(container: ElementRef) {
|
||||
setTimeout(async () => {
|
||||
if (container) {
|
||||
// Apply background from storage when layout container is in DOM
|
||||
await this.backgroundService.applyBackgroundFromStorage();
|
||||
if (this.libService.showBackgroundEffectsButton()) {
|
||||
// Apply background from storage when layout container is in DOM only when background effects button is enabled
|
||||
await this.backgroundService.applyBackgroundFromStorage();
|
||||
}
|
||||
}
|
||||
}, 0);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue