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 id="app_name">Meerkat</title>
<div id="app"></div>
\ No newline at end of file
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);
\ 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