mirror of
https://github.com/LingChair/LingChair-V0.git
synced 2025-12-08 10:05:49 +08:00
fix: image
This commit is contained in:
@@ -399,7 +399,14 @@ class ChatMsgAdapter {
|
||||
|
||||
let nick = await NickCache.getNick(name) // re.data == null ? name : re.data.nick
|
||||
|
||||
let msg = marked.parse(m)
|
||||
let msg
|
||||
|
||||
try {
|
||||
msg = await marked.parse(m)
|
||||
} catch(e) {
|
||||
console.log("解析消息失败: " + e)
|
||||
msg = escapeHTML(m)
|
||||
}
|
||||
|
||||
let temp
|
||||
if (name === localStorage.userName)
|
||||
@@ -440,7 +447,7 @@ class ChatMsgAdapter {
|
||||
}
|
||||
|
||||
this.bbn = new Date(t).getMinutes()
|
||||
|
||||
|
||||
return e
|
||||
}
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user