mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2026-08-03 03:10:07 -04:00
Moved source integration into patches
This commit is contained in:
@@ -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)
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user