правка
This commit is contained in:
gofnnp 2023-01-12 19:27:34 +04:00
parent 85174c1fab
commit e570e82f90

View File

@ -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)
}