Fix an error in quick contact about document typeof

This commit is contained in:
Konstantinos Triantafyllou 2022-05-05 10:42:44 +03:00
parent 4aabb739bf
commit 5bcc3862e6
1 changed files with 1 additions and 1 deletions

View File

@ -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();