Commit 75d84ca9 authored by MaxSol1's avatar MaxSol1
Browse files

update title of page too

parent 60cb4238
......@@ -11,9 +11,18 @@
<link rel="stylesheet" href="/react-widgets.css">
<script src="/dist/bundle.js" defer></script>
<title>Meerkat</title>
<title id="app_name">Meerkat</title>
</head>
<body>
<div id="app"></div>
</body>
</html>
\ No newline at end of file
</html>
<script>
async function getSettings() {
const res = await fetch('/settings')
const data = await res.json();
return data;
}
getSettings().then(settings => document.getElementById("app_name").innerHTML = settings.appName);
</script>
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment