build all packages

This commit is contained in:
Harvey committed 2019-11-22 18:10:25 +08:00
1 parent 97646bc729
commit 44ca79ef62
15 files changed
+69 -58

No files matched your search

+4 -2
View File
@@ -43,10 +43,12 @@ export default class Subtitle extends Component {
}
}
switch(url, name = 'unknown') {
switch(url, name) {
const { i18n, notice } = this.art;
return this.init(url).then(subUrl => {
notice.show(`${i18n.get('Switch subtitle')}: ${name}`);
if (name) {
notice.show(`${i18n.get('Switch subtitle')}: ${name}`);
}
this.art.emit('subtitle:switch', subUrl);
return subUrl;
});