add some polyfill to demo

This commit is contained in:
Harvey committed 2021-12-06 10:23:12 +08:00
1 parent d536452067
commit 090a1b6f7d
3 files changed
+11 -5

No files matched your search

+1
View File
@@ -109,6 +109,7 @@ export default class Subtitle extends Component {
proxy(this.textTrack, 'cuechange', this.update.bind(this));
}
errorHandle(window.fetch, 'fetch not support');
return fetch(url)
.then((response) => response.arrayBuffer())
.then((buffer) => {