Consistency!
This commit is contained in:
parent
6deb3bea33
commit
7418f23890
3 changed files with 17 additions and 7 deletions
3
index.js
3
index.js
|
@ -323,7 +323,8 @@ async function pageUpdate() {
|
|||
addedHTML = ""
|
||||
|
||||
var socialsHTML = fs.readFileSync(path.join(__dirname, 'static/socials/index.html')).toString()
|
||||
addedHTML += socialsHTML.substring(socialsHTML.indexOf("<h1>"), socialsHTML.indexOf("</body>"))
|
||||
addedHTML += "<h2><hr>Socials</h2>"
|
||||
addedHTML += socialsHTML.substring(socialsHTML.indexOf("</h1>") + 5, socialsHTML.indexOf("</body>"))
|
||||
|
||||
html = html.replace("{SOCIALS}", addedHTML)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue