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,
|
updates: SwUpdate,
|
||||||
translate: TranslateService
|
translate: TranslateService
|
||||||
) {
|
) {
|
||||||
|
if(!updates.isEnabled) return;
|
||||||
|
|
||||||
// Allow the app to stabilize first, before starting
|
// Allow the app to stabilize first, before starting
|
||||||
// polling for updates with `interval()`.
|
// polling for updates with `interval()`.
|
||||||
const appIsStable$ = appRef.isStable.pipe(first(isStable => isStable === true));
|
const appIsStable$ = appRef.isStable.pipe(first(isStable => isStable === true));
|
||||||
|
|
Loading…
Reference in New Issue