summaryrefslogtreecommitdiffstats
path: root/ui/src/components/search.tsx
diff options
context:
space:
mode:
authorDessalines <tyhou13@gmx.com>2019-06-02 18:35:46 -0700
committerDessalines <tyhou13@gmx.com>2019-06-02 18:35:46 -0700
commitab9659c2e256e421922756b36fbd6b9f91ba3a54 (patch)
tree797a8d4ebba6aede39c2fa2ba707fa94dc4bb590 /ui/src/components/search.tsx
parent107765619aa67171bfe46daa533b90867250a47e (diff)
Fix page titles for custom site name
- Fixes #113
Diffstat (limited to 'ui/src/components/search.tsx')
-rw-r--r--ui/src/components/search.tsx4
1 files changed, 2 insertions, 2 deletions
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);