This commit is contained in:
Harvey Zack committed 2018-10-24 13:43:11 +08:00
1 parent 9fd3e580bb
commit 4ce05442c7
36 files changed
+731 -683

No files matched your search

+6 -2
View File
@@ -3,8 +3,12 @@ import { errorHandle, getExt, setStyle } from './utils';
export default class Subtitle {
constructor(art) {
this.art = art;
this.checkExt(this.art.option.subtitle.url);
this.init();
const { url } = this.art.option.subtitle;
if (url) {
this.checkExt(url);
this.init();
}
}
init() {