1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-11-23 23:21:00 +01:00

Fixed hiding of search on file://

This commit is contained in:
squidfunk 2020-04-26 19:28:32 +02:00
parent dac469eace
commit 19ab065236

View File

@ -292,7 +292,11 @@ export function initialize(config: unknown) {
shareReplay(1)
)
}),
catchError(() => NEVER)
catchError(() => {
useComponent("search")
.subscribe(el => el.hidden = true) // TODO: Hack
return NEVER
})
)
/* ----------------------------------------------------------------------- */