7 lines
218 B
JavaScript
7 lines
218 B
JavaScript
|
import localStorageMemory from 'localstorage-memory'
|
||
|
import { testHasLocalStorage } from './testStorage'
|
||
|
|
||
|
const safeLocalStorage = testHasLocalStorage() ? localStorage : localStorageMemory
|
||
|
|
||
|
export { safeLocalStorage }
|