diff options
author | Emiliano Ciavatta | 2020-10-03 15:01:32 +0000 |
---|---|---|
committer | Emiliano Ciavatta | 2020-10-03 15:01:32 +0000 |
commit | f11e5d9e55c963109af8b8517c7790bf2eb7cac8 (patch) | |
tree | 9414951f4f2d7e1b5097ba655d50791b9faf27e0 /frontend/src/views | |
parent | 7d40e85e64762db8d420a33ed352f707edd7a9ba (diff) |
Add title page window titles
Diffstat (limited to 'frontend/src/views')
-rw-r--r-- | frontend/src/views/App.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/frontend/src/views/App.js b/frontend/src/views/App.js index fb4454c..abd5209 100644 --- a/frontend/src/views/App.js +++ b/frontend/src/views/App.js @@ -18,6 +18,14 @@ class App extends Component { componentDidMount() { backend.get("/api/services").then(_ => this.setState({configured: true})); + + setInterval(() => { + if (document.title.endsWith("❚")) { + document.title = document.title.slice(0, -1); + } else { + document.title += "❚"; + } + }, 500); } render() { |