Skip to content

Commit

Permalink
fix: Correctly check that window exists
Browse files Browse the repository at this point in the history
  • Loading branch information
ptbrowne committed Jan 9, 2020
1 parent 29054a9 commit c5da980
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cozy-realtime/src/CozyRealtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import MicroEE from 'microee'
import Socket from './Socket'
import minilog_ from 'minilog'

const minilog = (typeof window !== undefined && window.minilog) || minilog_
const minilog = (typeof window !== 'undefined' && window.minilog) || minilog_
const logger = minilog('cozy-realtime')
minilog.suggest.deny('cozy-realtime', 'info')

Expand Down

0 comments on commit c5da980

Please sign in to comment.