fmt
This commit is contained in:
parent
002ffe64fc
commit
e32e3d31ea
|
@ -135,7 +135,7 @@ export const FullArticle = (props: Props) => {
|
|||
|
||||
const media = createMemo<MediaItem[]>(() => {
|
||||
try {
|
||||
return JSON.parse(props.article?.media || "[]")
|
||||
return JSON.parse(props.article?.media || '[]')
|
||||
} catch {
|
||||
return []
|
||||
}
|
||||
|
|
|
@ -50,7 +50,7 @@ export const ConnectProvider = (props: { children: JSX.Element }) => {
|
|||
Authorization: token,
|
||||
},
|
||||
onmessage(event) {
|
||||
const m: SSEMessage = JSON.parse(event.data || "{}")
|
||||
const m: SSEMessage = JSON.parse(event.data || '{}')
|
||||
console.log('[context.connect] Received message:', m)
|
||||
|
||||
// Iterate over all registered handlers and call them
|
||||
|
|
Loading…
Reference in New Issue
Block a user