diff options
| author | Pinapelz <yukais@pinapelz.com> | 2025-02-14 00:54:21 -0800 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2025-02-14 00:54:21 -0800 |
| commit | 47193c34724e6b75d80bbe1ce9dc46e0344c7294 (patch) | |
| tree | 502ca3e5e20764e327a3f7004c365ddb758c6ff9 /index.js | |
| parent | 7b079bb9fdde3f2b8276a7100d3416405009c2be (diff) | |
change exported html ltiers title to match title-label
Diffstat (limited to 'index.js')
| -rw-r--r-- | index.js | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -330,7 +330,9 @@ async function save_tierlist_with_template(filename) { let inlineScript = `<script>\n${scriptContent}\n</script>`; let inlineCSS = `<style>\n${styleContent}\n</style>`; + let inlineTitle = `<title>${serialized_tierlist.title}</title>`; + templateHTML = templateHTML.replace("<title>Interactive Tiers</title>", inlineTitle); templateHTML = templateHTML.replace("</head>", inlineCSS + "\n</head>"); let updatedHTML = templateHTML.replace("</body>", jsonScript + "\n" + inlineScript + "\n</body>"); save(filename, updatedHTML); |
