aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/views/App.js
diff options
context:
space:
mode:
authorEmiliano Ciavatta2020-10-03 15:01:32 +0000
committerEmiliano Ciavatta2020-10-03 15:01:32 +0000
commitf11e5d9e55c963109af8b8517c7790bf2eb7cac8 (patch)
tree9414951f4f2d7e1b5097ba655d50791b9faf27e0 /frontend/src/views/App.js
parent7d40e85e64762db8d420a33ed352f707edd7a9ba (diff)
Add title page window titles
Diffstat (limited to 'frontend/src/views/App.js')
-rw-r--r--frontend/src/views/App.js8
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() {