完善文档

This commit is contained in:
Harvey committed 2019-11-21 10:31:49 +08:00
1 parent 20f3488830
commit 12c64e41fb
2 files changed
+201 -72

No files matched your search

+2
View File
@@ -63,6 +63,7 @@ export default class Subtitle {
return response.text();
})
.then(text => {
this.art.emit('subtitle:load', url);
switch (getExt(url)) {
case 'srt':
return vttToBlob(srtToVtt(text));
@@ -83,6 +84,7 @@ export default class Subtitle {
})
.catch(err => {
notice.show(err);
this.art.emit('subtitle:err', err);
throw err;
});
}