furo 2021-11-07 21:56:57 +01:00
commit 81338ec3e3
2 changed files with 6 additions and 5 deletions

View File

@ -35,11 +35,13 @@ export function download(url, target) {
'end',
() => resolve(result)
)
} else {
fs.unlink(target, () => {
const file = fs.createWriteStream(target)
data.pipe(file)
})
}
else {
const file = fs.createWriteStream(target)
data.pipe(file)
}
data.on(
'end',
() => {

View File

@ -26,7 +26,6 @@
<p class="rank-position">{{ rank.rank }}.</p>
<p class="rank-player">{{ rank.player }}</p>
<p class="rank-points">{{ rank.points }} pts</p>
<p class="rank-points">{{ rank.region }} pts</p>
</div>
{% endfor %}
</div>