mirror of
https://github.com/status-im/fathom.git
synced 2025-03-01 03:20:27 +00:00
update document title with realtime visitor count
This commit is contained in:
parent
0ecd4ec251
commit
bcae762a35
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user