refactor(theme-shared): add snq for type error

pull/2261/head
mehmet-erim 6 years ago
parent d17d6b1c16
commit 40641a63b4

@ -14,6 +14,7 @@ import {
} from '@angular/core';
import { fromEvent, Subject } from 'rxjs';
import { debounceTime, filter } from 'rxjs/operators';
import snq from 'snq';
@Component({
selector: 'abp-http-error-wrapper',
@ -49,7 +50,8 @@ export class HttpErrorWrapperComponent implements AfterViewInit, OnDestroy, OnIn
}
ngOnInit() {
this.backgroundColor = window.getComputedStyle(document.body).getPropertyValue('background-color');
this.backgroundColor =
snq(() => window.getComputedStyle(document.body).getPropertyValue('background-color')) || '#fff';
}
ngAfterViewInit() {

Loading…
Cancel
Save