Add check for updates.isEnabled in UpdaterService constructor

This commit is contained in:
Matteo Gheza 2024-01-17 18:08:48 +01:00
parent e58652b802
commit 61c508c59e
1 changed files with 2 additions and 0 deletions

View File

@ -13,6 +13,8 @@ export class UpdaterService {
updates: SwUpdate,
translate: TranslateService
) {
if(!updates.isEnabled) return;
// Allow the app to stabilize first, before starting
// polling for updates with `interval()`.
const appIsStable$ = appRef.isStable.pipe(first(isStable => isStable === true));