Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

Commit

Permalink
Merge pull request #902 from moz65535/streaming_hashtagerr_fix
Browse files Browse the repository at this point in the history
ストリーミングでハッシュタグエラーが流れてくることがあるので対処
  • Loading branch information
Cutls authored Apr 22, 2023
2 parents 3a52c96 + cd30894 commit 876c36b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/js/tl/baseStreaming.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ export function mastodonBaseStreaming(acctId: string) {
ws.onmessage = function (mess) {
$(`div[data-acct=${acctId}] .landing`).hide()
const typeA = JSON.parse(mess.data).event
if (typeA === 'delete') {
if( !typeA ){
console.log('typeA is undefined : '+mess.data)
} else if (typeA === 'delete') {
$(`[unique-id=${JSON.parse(mess.data).payload}]`).hide()
$(`[unique-id=${JSON.parse(mess.data).payload}]`).remove()
} else if (typeA === 'update' || typeA === 'conversation') {
Expand Down

0 comments on commit 876c36b

Please sign in to comment.