1
0
mirror of https://github.com/axllent/mailpit.git synced 2025-03-17 21:18:19 +02:00

UI: Set hostname in page meta title to identify Mailpit instance

@see #154
This commit is contained in:
Ralph Slooten 2023-08-15 21:31:18 +12:00
parent 7875160aa7
commit bc4b028c39

View File

@ -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)