Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Johann-S committed Oct 5, 2021
1 parent 48bf13e commit 4a78b80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/src/util/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -312,11 +312,11 @@ const getNextActiveElement = (list, activeElement, shouldGetNext, isCycleAllowed
}

const getWindow = () => {
return typeof window !== 'undefined' ? window : {}
return typeof window === 'undefined' ? {} : window
}

const getDocument = () => {
return typeof document !== 'undefined' ? document : {}
return typeof document === 'undefined' ? {} : document
}

export {
Expand Down

0 comments on commit 4a78b80

Please sign in to comment.