low hanging cleanup for extrauser content

This commit is contained in:
Ginger Wong
2020-07-05 01:29:48 -07:00
parent 9bd1df8530
commit 34b3806806
5 changed files with 28 additions and 18 deletions

View File

@@ -50,17 +50,7 @@ async function setupApp() {
app.title = config.title;
window.document.title = config.title;
try {
const pageContentFile = config.extraUserInfoFileName;
const response = await fetch(pageContentFile);
const descriptionMarkdown = await response.text()
const descriptionHTML = new showdown.Converter().makeHtml(descriptionMarkdown);
app.extraUserContent = descriptionHTML;
return this;
} catch (error) {
console.log("Error", error);
}
getExtraUserContent(`${URL_PREFIX}${config.extraUserInfoFileName}`);
}
var websocketReconnectTimer;