Skip to content

Commit

Permalink
fix lint with prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Jul 10, 2021
1 parent 4dd9b98 commit e6d1b21
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils/web-preset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ const attachOnFocus = (cb: () => void) => {

const attachOnReconnect = (cb: () => void) => {
const onOnline = () => {
;(online = true) && cb()
online = true
cb()
}
const onOffline = () => {
online = false
Expand Down

0 comments on commit e6d1b21

Please sign in to comment.