Moved source integration into patches

This commit is contained in:
squidfunk
2020-02-19 11:42:51 +01:00
parent ae05805124
commit a6bc272778
12 changed files with 69 additions and 97 deletions

View File

@@ -20,8 +20,13 @@
* IN THE SOFTWARE.
*/
import { Observable, OperatorFunction, pipe } from "rxjs"
import { map, switchMap } from "rxjs/operators"
import { NEVER, Observable, OperatorFunction, pipe } from "rxjs"
import {
catchError,
map,
shareReplay,
switchMap
} from "rxjs/operators"
import {
Header,
@@ -68,7 +73,9 @@ export function mountHeaderTitle(
map(({ offset: { y } }) => y >= headline.offsetHeight),
paintHeaderTitle(el)
)
)
),
shareReplay(1),
catchError(() => NEVER)
)
)
)