Skip to content

Commit

Permalink
Default chrome service app hidden observable to same value as force h…
Browse files Browse the repository at this point in the history
…idden
  • Loading branch information
eliperelman committed Nov 7, 2019
1 parent c1482fb commit fe96501
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/core/public/chrome/chrome_service.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,10 @@ export class ChromeService {
const chromeHidden$ = new BehaviorSubject(false);
const forceHidden$ = of(isEmbedParamInHash());
const appHidden$ = merge(
// Default the app being hidden to false in case the application service has
// not emitted an app ID yet since we want to trigger combineLatest below
// regardless of having a value yet.
of(false),
// Default the app being hidden to the same value as forceHidden$ in case the
// application service has not emitted an app ID yet, since we want to trigger
// combineLatest below regardless of having an application value yet.
forceHidden$,
application.currentAppId$.pipe(
map(
appId =>
Expand Down

0 comments on commit fe96501

Please sign in to comment.