diff --git a/src/utils/web-preset.ts b/src/utils/web-preset.ts index 3d3561aca..a7535d56f 100644 --- a/src/utils/web-preset.ts +++ b/src/utils/web-preset.ts @@ -46,7 +46,8 @@ const attachOnFocus = (cb: () => void) => { const attachOnReconnect = (cb: () => void) => { const onOnline = () => { - ;(online = true) && cb() + online = true + cb() } const onOffline = () => { online = false