压缩字符

This commit is contained in:
Harvey committed 2019-11-27 15:46:55 +08:00
1 parent 2df60a78ff
commit 5f40463713
40 files changed
+385 -481

No files matched your search

+2 -2
View File
@@ -47,7 +47,7 @@ export default class Subtitle extends Component {
const { i18n, notice } = this.art;
return this.init(url).then(subUrl => {
if (name) {
notice.show(`${i18n.get('Switch subtitle')}: ${name}`);
notice.show = `${i18n.get('Switch subtitle')}: ${name}`;
}
this.art.emit('subtitle:switch', subUrl);
return subUrl;
@@ -85,7 +85,7 @@ export default class Subtitle extends Component {
return subUrl;
})
.catch(err => {
notice.show(err);
notice.show = err;
this.art.emit('subtitle:err', err);
throw err;
});