Fix some ie bug

This commit is contained in:
Harvey committed 2021-12-03 14:41:48 +08:00
1 parent b6d3bb505b
commit 105608ee25
4 files changed
+6 -4

No files matched your search

+1
View File
@@ -111,6 +111,7 @@ export default class Subtitle extends Component {
return fetch(url)
.then((response) => response.arrayBuffer())
.then((buffer) => {
if (!window.TextDecoder) return;
const decoder = new TextDecoder(opt.encoding || subtitle.encoding);
const text = decoder.decode(buffer);