From 19ab06523669e9d51b24a798eaae3ae7bf88799c Mon Sep 17 00:00:00 2001 From: squidfunk Date: Sun, 26 Apr 2020 19:28:32 +0200 Subject: [PATCH] Fixed hiding of search on file:// --- src/assets/javascripts/index.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/assets/javascripts/index.ts b/src/assets/javascripts/index.ts index 7b3b5088f..373070630 100644 --- a/src/assets/javascripts/index.ts +++ b/src/assets/javascripts/index.ts @@ -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 + }) ) /* ----------------------------------------------------------------------- */