[DURACOM-240] use BehaviorSubject

This commit is contained in:
Giuseppe Digilio
2024-03-17 19:07:09 +01:00
parent 3e30f64e9c
commit 9e6fe526e1
2 changed files with 7 additions and 7 deletions

View File

@@ -1,7 +1,7 @@
import { Injectable } from '@angular/core';
import {
BehaviorSubject,
Observable,
ReplaySubject,
Subject,
} from 'rxjs';
import { environment } from 'src/environments/environment';
@@ -42,7 +42,7 @@ export class ClientMathService extends MathService {
constructor() {
super();
this.isReady$ = new ReplaySubject<boolean>(1);
this.isReady$ = new BehaviorSubject<boolean>(false);
void this.registerMathJaxAsync(this.mathJax)
.then(() => this.isReady$.next(true))