From ab9659c2e256e421922756b36fbd6b9f91ba3a54 Mon Sep 17 00:00:00 2001
From: Dessalines <tyhou13@gmx.com>
Date: Sun, 2 Jun 2019 18:35:46 -0700
Subject: Fix page titles for custom site name

- Fixes #113
---
 ui/src/components/search.tsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'ui/src/components/search.tsx')

diff --git a/ui/src/components/search.tsx b/ui/src/components/search.tsx
index 7c72939a..0d3b255d 100644
--- a/ui/src/components/search.tsx
+++ b/ui/src/components/search.tsx
@@ -52,7 +52,7 @@ export class Search extends Component<any, SearchState> {
   }
 
   componentDidMount() {
-    document.title = "Search - Lemmy";
+    document.title = `Search - ${WebSocketService.Instance.site.name}`;
   }
 
   render() {
@@ -250,7 +250,7 @@ export class Search extends Component<any, SearchState> {
       let res: SearchResponse = msg;
       this.state.searchResponse = res;
       this.state.loading = false;
-      document.title = `Search - ${this.state.q} - Lemmy`;
+      document.title = `Search - ${this.state.q} - ${WebSocketService.Instance.site.name}`;
       window.scrollTo(0,0);
       this.setState(this.state);
       
-- 
cgit v1.2.3

