From bc4b028c398f3759f62977277d963f8d92ac154d Mon Sep 17 00:00:00 2001
From: Ralph Slooten <axllent@gmail.com>
Date: Tue, 15 Aug 2023 21:31:18 +1200
Subject: [PATCH] UI: Set hostname in page meta title to identify Mailpit
 instance

@see #154
---
 server/ui-src/App.vue | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/server/ui-src/App.vue b/server/ui-src/App.vue
index c998064..7c2de4e 100644
--- a/server/ui-src/App.vue
+++ b/server/ui-src/App.vue
@@ -88,6 +88,10 @@ export default {
 	},
 
 	mounted() {
+
+		let title = document.title + ' - ' + location.hostname
+		document.title = title
+
 		this.currentPath = window.location.hash.slice(1)
 		window.addEventListener('hashchange', () => {
 			this.currentPath = window.location.hash.slice(1)