parent
85174c1fab
commit
e570e82f90
@ -25,23 +25,23 @@ export class DownloadAppDirective implements OnInit {
|
||||
console.log('#: ', e);
|
||||
this.deferredPrompt = e;
|
||||
|
||||
this.getTypeDevice();
|
||||
|
||||
if (
|
||||
!(
|
||||
(this.deviceType == 'android' && this.deferredPrompt) ||
|
||||
this.deviceType == 'ios'
|
||||
)
|
||||
) {
|
||||
console.log(this.deviceType);
|
||||
console.log(this.deferredPrompt);
|
||||
|
||||
this.el.nativeElement.style.display = 'none';
|
||||
}
|
||||
});
|
||||
this.renderer.listen('window', 'appinstalled', (evt) => {
|
||||
console.log('INSTALLED!!!');
|
||||
});
|
||||
this.getTypeDevice();
|
||||
|
||||
if (
|
||||
!(
|
||||
(this.deviceType == 'android' && this.deferredPrompt) ||
|
||||
this.deviceType == 'ios'
|
||||
)
|
||||
) {
|
||||
console.log(this.deviceType);
|
||||
console.log(this.deferredPrompt);
|
||||
|
||||
this.el.nativeElement.style.display = 'none';
|
||||
}
|
||||
}, 0)
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user