Skip to content

Commit

Permalink
Add support for text/vtt file type in handleFile method - should fix …
Browse files Browse the repository at this point in the history
…the actual issue in #5
  • Loading branch information
Mtillmann committed Jan 22, 2024
1 parent 7911611 commit 9f41c9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Frontend/FileHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export class FileHandler {
}

handleFile(file, origin = 'osDialog') {
if (['text/plain', 'text/xml', 'application/json', 'text/csv'].includes(file.type)) {
if (['text/plain', 'text/xml', 'application/json', 'text/csv', 'text/vtt'].includes(file.type)) {
fetch(URL.createObjectURL(file))
.then(r => r.text())
.then(text => {
Expand Down

0 comments on commit 9f41c9d

Please sign in to comment.