···2828 if (selectedFile) {
2929 if (
3030 selectedFile.type === 'text/vtt' ||
3131- (selectedFile.type === 'text/plain' &&
3232- selectedFile.name.endsWith('.vtt'))
3131+ // HACK: sometimes the mime type is just straight-up missing
3232+ // best we can do is check the file extension and hope for the best
3333+ selectedFile.name.endsWith('.vtt')
3334 ) {
3435 onSelectFile(selectedFile)
3536 } else {