Add check for updates.isEnabled in UpdaterService constructor
This commit is contained in:
parent
e58652b802
commit
61c508c59e
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue