From e4bb1d89476f49d46953ef8d6d81c85514306150 Mon Sep 17 00:00:00 2001 From: gofnnp Date: Fri, 13 Jan 2023 03:05:50 +0400 Subject: [PATCH] =?UTF-8?q?dev=20#13538=20=D0=BF=D1=80=D0=B0=D0=B2=D0=BA?= =?UTF-8?q?=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- angular/src/app/directives/download-app.directive.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/angular/src/app/directives/download-app.directive.ts b/angular/src/app/directives/download-app.directive.ts index 2eaf8a1..0b4ebbf 100644 --- a/angular/src/app/directives/download-app.directive.ts +++ b/angular/src/app/directives/download-app.directive.ts @@ -53,6 +53,9 @@ export class DownloadAppDirective implements OnInit { console.log(e); e.preventDefault(); this.deferredPrompt = e; + if (this.deferredPrompt) { + this.el.nativeElement.style.display = 'block'; + } } @HostListener('window:appinstalled', ['$event']) @@ -62,9 +65,6 @@ export class DownloadAppDirective implements OnInit { e.preventDefault(); // Stash the event so it can be triggered later. this.deferredPrompt = e; - if (this.deferredPrompt) { - this.el.nativeElement.style.display = 'block'; - } }