diff options
Diffstat (limited to 'node_modules/@phntms/use-local-state/src/utils.ts')
-rw-r--r-- | node_modules/@phntms/use-local-state/src/utils.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/node_modules/@phntms/use-local-state/src/utils.ts b/node_modules/@phntms/use-local-state/src/utils.ts new file mode 100644 index 0000000..67d8ce6 --- /dev/null +++ b/node_modules/@phntms/use-local-state/src/utils.ts @@ -0,0 +1,3 @@ +export const IS_BROWSER = typeof window !== "undefined"; + +export const SUPPORTED = IS_BROWSER && window.localStorage; |