From de8f5e3e90d0b1088c17d0e873b7e65625cd1a11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Zieli=C5=84ski?= Date: Fri, 23 Jun 2023 18:56:05 +0200 Subject: [PATCH] swUpdate debug --- Frontend/src/app/app.component.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Frontend/src/app/app.component.ts b/Frontend/src/app/app.component.ts index 6cc85a4..e9a6ad4 100644 --- a/Frontend/src/app/app.component.ts +++ b/Frontend/src/app/app.component.ts @@ -2,6 +2,7 @@ import { Component } from '@angular/core'; import { RouterOutlet } from '@angular/router'; import { SwUpdate } from '@angular/service-worker'; import { NotificationsService } from './services/notifications.service'; +import { environment } from 'src/environments/environment'; @Component({ selector: 'app-root', @@ -15,7 +16,7 @@ export class AppComponent { private readonly _swUpdate: SwUpdate, private _notifications: NotificationsService ) { - console.log('Start versionUpdates subscribe'); + console.log('Start versionUpdates subscribe', this._swUpdate.isEnabled, environment.production); this._swUpdate.versionUpdates.subscribe((evt) => { console.log('Version update', evt); if (evt.type === 'VERSION_READY') {