Skip to content

Commit 613a57b

Browse files
committed
style(octra): remove logging for service worker update checks
1 parent faa38e0 commit 613a57b

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed

apps/octra/src/app/core/store/idb/idb-effects.service.ts

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
import { inject, Injectable } from '@angular/core';
22
import { Actions, createEffect, ofType } from '@ngrx/effects';
33
import { Action, Store } from '@ngrx/store';
4-
import { ASRContext, IAnnotJSON, OAnnotJSON, OctraAnnotation, OctraAnnotationSegment } from '@octra/annotation';
4+
import {
5+
ASRContext,
6+
IAnnotJSON,
7+
OAnnotJSON,
8+
OctraAnnotation,
9+
OctraAnnotationSegment,
10+
} from '@octra/annotation';
511
import { ProjectDto, TaskDto } from '@octra/api-types';
612
import { hasProperty } from '@octra/utilities';
713
import { SessionStorageService } from 'ngx-webstorage';
@@ -19,9 +25,12 @@ import {
1925
Subject,
2026
tap,
2127
timer,
22-
withLatestFrom
28+
withLatestFrom,
2329
} from 'rxjs';
24-
import { IIDBApplicationOptions, IIDBModeOptions } from '../../shared/octra-database';
30+
import {
31+
IIDBApplicationOptions,
32+
IIDBModeOptions,
33+
} from '../../shared/octra-database';
2534
import { AudioService } from '../../shared/service';
2635
import { ConsoleEntry } from '../../shared/service/bug-report.service';
2736
import { IDBService } from '../../shared/service/idb.service';

libs/ngx-components/src/lib/version-checker/version-checker.service.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,12 @@ export class VersionCheckerService extends SubscriberComponent {
3030
return;
3131
}
3232

33-
this.swUpdate.checkForUpdate().then(() => {
34-
console.log('Checking for updates...');
35-
});
33+
this.swUpdate.checkForUpdate();
3634

3735
// check for updates every 5 minutes
3836
this.subscribe(interval(this.options.interval), {
3937
next: () => {
40-
this.swUpdate.checkForUpdate().then(() => {
41-
console.log('Checking for updates...');
42-
});
38+
this.swUpdate.checkForUpdate();
4339
},
4440
});
4541

0 commit comments

Comments
 (0)