Skip to content

Commit

Permalink
testing the install prompt on generic browser
Browse files Browse the repository at this point in the history
  • Loading branch information
philipp-1337 committed Sep 30, 2024
1 parent b9339fa commit 82f4245
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/pwa.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export class PwaService {
) { }

public initPwaPrompt() {
if (this.platform.ANDROID) {
if (this.platform.ANDROID || this.platform.isBrowser) {
window.addEventListener('beforeinstallprompt', (event: any) => { // eslint-disable-line @typescript-eslint/no-explicit-any
event.preventDefault();
this.promptEvent = event;
Expand Down

0 comments on commit 82f4245

Please sign in to comment.