From d3c3ee3044c2d6f373d10edea80965b7488b9c42 Mon Sep 17 00:00:00 2001 From: Lukas Heiligenbrunner Date: Sun, 26 Jul 2020 14:27:56 +0200 Subject: [PATCH] tab title depends on mediacenter name --- src/App.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/App.js b/src/App.js index 56a9467..3decd3d 100644 --- a/src/App.js +++ b/src/App.js @@ -36,7 +36,8 @@ class App extends React.Component { passwordsupport: result.passwordEnabled, mediacentername: result.mediacenter_name }); - console.log(this.state); + // set tab title to received mediacenter name + document.title = result.mediacenter_name; })); }