0e524f3e9a
* WIP: detect private browsing and safari blocked cookies * just check for indexeddb * just check for indexeddb * change warning text * change text * change text again * change text again fixes #444
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 }
|