fix filename encoding on kobo, add checkbox for kindlegen and transliteration

This commit is contained in:
daniel-j
2024-07-21 15:11:45 +02:00
parent 235308f5f3
commit c1b6f9d3ea
3 changed files with 48 additions and 23 deletions

View File

@@ -84,6 +84,7 @@ function pollFile () {
if (data.file) {
downloads.style.display = 'block'
downloadlink.textContent = data.file.name
downloadlink.href = '/' + encodeURIComponent(data.file.name)
} else {
downloads.style.display = 'none'
}
@@ -111,7 +112,7 @@ function generateKey () {
if (x.responseText !== 'error' && x.status === 200) {
key = x.responseText
keyOutput.textContent = key
downloadlink.href = './download/' + key
downloadlink.href = ''
if (pollTimer) clearInterval(pollTimer)
pollTimer = setInterval(pollFile, 5 * 1000)
} else {