Fixes!
This commit is contained in:
parent
7393ee2761
commit
d29300a666
2 changed files with 4 additions and 2 deletions
4
index.js
4
index.js
|
@ -323,8 +323,10 @@ async function pageUpdate() {
|
|||
addedHTML = ""
|
||||
|
||||
var socialsHTML = fs.readFileSync(path.join(__dirname, 'static/socials/index.html')).toString()
|
||||
// socialsHTML = socialsHTML.substring(0, socialsHTML.lastIndexOf("</div>"))
|
||||
addedHTML += "<h2><hr>Socials</h2>"
|
||||
addedHTML += socialsHTML.substring(socialsHTML.indexOf("</h1>") + 5, socialsHTML.lastIndexOf("</div>"))
|
||||
addedHTML += socialsHTML.substring(socialsHTML.indexOf("<div"), socialsHTML.lastIndexOf("</div>") + 6)
|
||||
console.log(addedHTML)
|
||||
|
||||
html = html.replace("{SOCIALS}", addedHTML)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue