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) {
|
set layoutContainer(container: ElementRef) {
|
||||||
setTimeout(async () => {
|
setTimeout(async () => {
|
||||||
if (container) {
|
if (container) {
|
||||||
// Apply background from storage when layout container is in DOM
|
if (this.libService.showBackgroundEffectsButton()) {
|
||||||
await this.backgroundService.applyBackgroundFromStorage();
|
// Apply background from storage when layout container is in DOM only when background effects button is enabled
|
||||||
|
await this.backgroundService.applyBackgroundFromStorage();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}, 0);
|
}, 0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue