update
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
import { PwaInstallService } from '@/core/services/pwa-install.service';
|
||||
import { Component, HostListener } from '@angular/core';
|
||||
import { RouterModule } from '@angular/router';
|
||||
import { ConfirmDialog } from 'primeng/confirmdialog';
|
||||
import { ToastModule } from 'primeng/toast';
|
||||
import { brandingConfig } from './app/branding/branding.config';
|
||||
|
||||
@Component({
|
||||
selector: 'app-root',
|
||||
@@ -16,8 +18,11 @@ import { ToastModule } from 'primeng/toast';
|
||||
export class AppComponent {
|
||||
toastPosition: 'top-center' | 'bottom-right' = 'bottom-right';
|
||||
|
||||
constructor() {
|
||||
constructor(private readonly pwaInstallService: PwaInstallService) {
|
||||
this.updateToastPosition();
|
||||
if (brandingConfig.enableInstallPrompt) {
|
||||
this.pwaInstallService.init();
|
||||
}
|
||||
}
|
||||
|
||||
@HostListener('window:resize')
|
||||
|
||||
Reference in New Issue
Block a user