Skip to content

Commit

Permalink
Remove log
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippMDoerner committed Dec 9, 2024
1 parent c4d7c88 commit 7b26eb3
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/design/organisms/mobile-header/mobile-header.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
} from '@angular/core';
import { RouterLink } from '@angular/router';
import { NgbTooltipModule } from '@ng-bootstrap/ng-bootstrap';
import { fromEvent, map, merge, startWith, tap } from 'rxjs';
import { fromEvent, map, merge, startWith } from 'rxjs';
import { environment } from 'src/environments/environment';
import { IconComponent } from '../../atoms/icon/icon.component';

Expand All @@ -31,8 +31,5 @@ export class MobileHeaderComponent {
online$ = merge(
fromEvent(window, 'online').pipe(map(() => true)),
fromEvent(window, 'offline').pipe(map(() => false)),
).pipe(
startWith(window.navigator.onLine),
tap((val) => console.log('online:', val)),
);
).pipe(startWith(window.navigator.onLine));
}

0 comments on commit 7b26eb3

Please sign in to comment.