Skip to content

Commit

Permalink
lib/storage: Don't import windowGlobal
Browse files Browse the repository at this point in the history
It is undefined if imported
  • Loading branch information
blazeu committed Mar 2, 2018
1 parent e133534 commit 2e15a5e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/storage.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import windowGlobal from './utils'
// For some reason this can't be imported from utils
const windowGlobal = typeof window !== 'undefined' && window

const storageAdapter = windowGlobal
? windowGlobal.localStorage
Expand Down

0 comments on commit 2e15a5e

Please sign in to comment.