From 466f988f47d858274c6de562a2ecc4ec6466bd4d Mon Sep 17 00:00:00 2001
From: Dessalines <tyhou13@gmx.com>
Date: Mon, 22 Apr 2019 09:24:13 -0700
Subject: Adding document titles.

- Fixes #100
---
 ui/src/components/inbox.tsx | 4 ++++
 1 file changed, 4 insertions(+)

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

diff --git a/ui/src/components/inbox.tsx b/ui/src/components/inbox.tsx
index e6ce6d13..e386aa1a 100644
--- a/ui/src/components/inbox.tsx
+++ b/ui/src/components/inbox.tsx
@@ -48,6 +48,10 @@ export class Inbox extends Component<any, InboxState> {
     this.subscription.unsubscribe();
   }
 
+  componentDidMount() {
+    document.title = `/u/${UserService.Instance.user.username} Inbox - Lemmy`;
+  }
+
   render() {
     let user = UserService.Instance.user;
     return (
-- 
cgit v1.2.3

