parent
7a895c76a6
commit
85174c1fab
@ -19,6 +19,7 @@ export class DownloadAppDirective implements OnInit {
|
||||
public renderer: Renderer2,
|
||||
private el: ElementRef
|
||||
) {
|
||||
setTimeout(() => {
|
||||
this.renderer.listen('window', 'beforeinstallprompt', (e) => {
|
||||
e.preventDefault();
|
||||
console.log('#: ', e);
|
||||
@ -41,6 +42,7 @@ export class DownloadAppDirective implements OnInit {
|
||||
this.renderer.listen('window', 'appinstalled', (evt) => {
|
||||
console.log('INSTALLED!!!');
|
||||
});
|
||||
}, 0)
|
||||
}
|
||||
|
||||
ngOnInit(): void {}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user