压缩字符

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

@@ -226,12 +226,12 @@ export default class Danmuku {
emit(danmu) {
const { notice, player, i18n } = this.art;
if (!danmu.text.trim()) {
notice.show(i18n.get('Danmu text cannot be empty'));
notice.show = i18n.get('Danmu text cannot be empty');
return;
}
if (danmu.text.length > this.option.maxlength) {
notice.show(`${i18n.get('The length of the danmu does not exceed')} ${this.option.maxlength}`);
notice.show = `${i18n.get('The length of the danmu does not exceed')} ${this.option.maxlength}`;
return;
}