Skip to content

Commit

Permalink
Merge pull request #16 from mbirth/fix-wrong-mimetype
Browse files Browse the repository at this point in the history
Force MIME type to text/plain to avoid "XML Parsing Error".
  • Loading branch information
chrisboustead authored Sep 3, 2020
2 parents 3e7bd17 + 2a999bd commit b621241
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ class vttThumbnailsPlugin {

req.addEventListener('load', this.vttFileLoaded);
req.open('GET', url);
req.overrideMimeType('text/plain; charset=utf-8');
req.send();
});
}
Expand Down

0 comments on commit b621241

Please sign in to comment.