From 466f988f47d858274c6de562a2ecc4ec6466bd4d Mon Sep 17 00:00:00 2001 From: Dessalines Date: Mon, 22 Apr 2019 09:24:13 -0700 Subject: Adding document titles. - Fixes #100 --- ui/src/components/modlog.tsx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ui/src/components/modlog.tsx') diff --git a/ui/src/components/modlog.tsx b/ui/src/components/modlog.tsx index 7145b4f6..55df617a 100644 --- a/ui/src/components/modlog.tsx +++ b/ui/src/components/modlog.tsx @@ -44,6 +44,10 @@ export class Modlog extends Component { this.subscription.unsubscribe(); } + componentDidMount() { + document.title = "Modlog - Lemmy"; + } + setCombined(res: GetModlogResponse) { let removed_posts = addTypeInfo(res.removed_posts, "removed_posts"); let locked_posts = addTypeInfo(res.locked_posts, "locked_posts"); -- cgit v1.2.3