Add EPUB import for data bank

This commit is contained in:
Cohee
2024-04-20 01:24:46 +03:00
parent 3ff5884112
commit 78d1d48ea9
6 changed files with 68 additions and 4 deletions

View File

@ -179,7 +179,7 @@ class FileScraper {
return new Promise(resolve => {
const fileInput = document.createElement('input');
fileInput.type = 'file';
fileInput.accept = '.txt, .md, .pdf, .html, .htm';
fileInput.accept = '.txt, .md, .pdf, .html, .htm, .epub';
fileInput.multiple = true;
fileInput.onchange = () => resolve(Array.from(fileInput.files));
fileInput.click();