Add support for Office plugin

This commit is contained in:
Cohee
2024-04-21 16:27:44 +03:00
parent ca89be8930
commit 4264d170e2
3 changed files with 113 additions and 5 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, .epub';
fileInput.accept = '*/*';
fileInput.multiple = true;
fileInput.onchange = () => resolve(Array.from(fileInput.files));
fileInput.click();