Fix an error in quick contact about document typeof
This commit is contained in:
parent
4aabb739bf
commit
5bcc3862e6
|
@ -22,7 +22,7 @@ export class QuickContactComponent implements OnInit, OnDestroy {
|
||||||
@ViewChild('drop') drop: ElementRef;
|
@ViewChild('drop') drop: ElementRef;
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
if (document !== undefined) {
|
if (typeof document !== 'undefined') {
|
||||||
this.subscriptions.push(UIkit.util.on(document, 'beforehide', '#quick-contact', (event) => {
|
this.subscriptions.push(UIkit.util.on(document, 'beforehide', '#quick-contact', (event) => {
|
||||||
if(this.sending) {
|
if(this.sending) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
|
Loading…
Reference in New Issue