一些小优化

This commit is contained in:
John Smith 2021-01-28 23:50:12 +08:00
parent d3cd5a3120
commit ddc13a6327
4 changed files with 5 additions and 5 deletions

View File

@ -11,8 +11,8 @@ export const DEFAULT_CONFIG = {
blockGiftDanmaku: true, blockGiftDanmaku: true,
blockLevel: 0, blockLevel: 0,
blockNewbie: true, blockNewbie: false,
blockNotMobileVerified: true, blockNotMobileVerified: false,
blockKeywords: '', blockKeywords: '',
blockUsers: '', blockUsers: '',
blockMedalLevel: 0, blockMedalLevel: 0,

View File

@ -137,7 +137,7 @@ export function getGiftShowContent (message, showGiftName) {
} }
export function getShowAuthorName (message) { export function getShowAuthorName (message) {
if (message.authorNamePronunciation) { if (message.authorNamePronunciation && message.authorNamePronunciation !== message.authorName) {
return `${message.authorName}(${message.authorNamePronunciation})` return `${message.authorName}(${message.authorNamePronunciation})`
} }
return message.authorName return message.authorName

View File

@ -379,7 +379,7 @@ export default {
} }
} }
this.maybeResizeScrollContainer(), this.maybeResizeScrollContainer()
this.flushMessagesBuffer() this.flushMessagesBuffer()
this.$nextTick(this.maybeScrollToBottom) this.$nextTick(this.maybeScrollToBottom)
}, },

View File

@ -54,7 +54,7 @@ def need_translate(text):
if any(0x3040 <= ord(c) <= 0x30FF for c in text): if any(0x3040 <= ord(c) <= 0x30FF for c in text):
return False return False
# 弹幕同传 # 弹幕同传
if text.startswith(''): if '' in text:
return False return False
# 中日双语 # 中日双语
if text in NO_TRANSLATE_TEXTS: if text in NO_TRANSLATE_TEXTS: