Update index.js

This commit is contained in:
Bingus_Violet 2024-01-10 18:47:18 +00:00
parent 2a950edebc
commit b015152ef7

View file

@ -216,10 +216,10 @@ function pageUpdate() {
addedHTML = "" addedHTML = ""
var faqHTML = fs.readFileSync(path.join(__dirname, 'static/faq/index.html')).toString() // var faqHTML = fs.readFileSync(path.join(__dirname, 'static/faq/index.html')).toString()
addedHTML += faqHTML.substring(faqHTML.indexOf("<h1>"), faqHTML.indexOf("</body>")) // addedHTML += faqHTML.substring(faqHTML.indexOf("<h1>"), faqHTML.indexOf("</body>"))
html = html.replace("{FAQ}", addedHTML) html = html.replace("{FAQ}", ``)
html = html.replace("{MASTODON_FEED}", mastoData.HTML) html = html.replace("{MASTODON_FEED}", mastoData.HTML)