Fix server error in alert.ts where UIkit event handler is defined.
This commit is contained in:
parent
2b4835bd0d
commit
4fa36bdd43
|
@ -157,7 +157,7 @@ export class AlertModal implements OnInit, AfterViewInit, OnDestroy {
|
|||
}
|
||||
|
||||
ngAfterViewInit() {
|
||||
if(this.element) {
|
||||
if(this.element && typeof document !== "undefined") {
|
||||
this.subscriptions.push(UIkit.util.on(document, 'hide', '#' + this.id, () => {
|
||||
this.cancelOutput.emit(true);
|
||||
}));
|
||||
|
|
Loading…
Reference in New Issue