From 5bcc3862e6210c83a870bdd69df88926a8631d48 Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Thu, 5 May 2022 10:42:44 +0300 Subject: [PATCH] Fix an error in quick contact about document typeof --- sharedComponents/quick-contact/quick-contact.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sharedComponents/quick-contact/quick-contact.component.ts b/sharedComponents/quick-contact/quick-contact.component.ts index 6ed517e1..3dc72e46 100644 --- a/sharedComponents/quick-contact/quick-contact.component.ts +++ b/sharedComponents/quick-contact/quick-contact.component.ts @@ -22,7 +22,7 @@ export class QuickContactComponent implements OnInit, OnDestroy { @ViewChild('drop') drop: ElementRef; ngOnInit() { - if (document !== undefined) { + if (typeof document !== 'undefined') { this.subscriptions.push(UIkit.util.on(document, 'beforehide', '#quick-contact', (event) => { if(this.sending) { event.preventDefault();