Skip to content

Commit

Permalink
feat(constant): add IS_BROWSER boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
leomp12 committed Jul 10, 2019
1 parent e76712f commit b10fc39
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/constants.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
export const IS_BROWSER = Boolean(typeof window === 'object' && window !== null && window.document)

export const API_STORE = 'https://api.e-com.plus/v1/'
export const API_STORE_CACHE = 'https://ioapi.ecvol.com/:id/v1/'
export const API_SEARCH = 'https://apx-search.e-com.plus/api/v1/'
Expand Down

0 comments on commit b10fc39

Please sign in to comment.