Skip to content

Commit

Permalink
feat: hide lottery danmu by default
Browse files Browse the repository at this point in the history
  • Loading branch information
ddiu8081 committed Oct 24, 2022
1 parent b3c07b1 commit 5a889ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/live-mini/src/instance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { danmuMsgCom } from './component/msg'
export const startInstance = (roomId: number, options: AppOptions) => {
const handler: MsgHandler = {
onIncomeDanmu: (msg) => {
console.log(danmuMsgCom(msg.body))
!msg.body.lottery && console.log(danmuMsgCom(msg.body))
},
}
startListen(roomId, handler)
Expand Down

0 comments on commit 5a889ea

Please sign in to comment.