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