update document title with realtime visitor count

This commit is contained in:
Danny 2018-05-16 17:25:29 +02:00
parent 0ecd4ec251
commit bcae762a35
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ class Realtime extends Component {
Client.request(`stats/site/realtime`)
.then((d) => {
this.setState({ count: d })
document.title = ( d > 0 ? d + ' current visitors &mdot; Fathom' : 'Fathom' );
document.title = ( d > 0 ? d + ' current visitors Fathom' : 'Fathom' );
})
.catch((e) => {
if(e.message == 401) {