mirror of
https://github.com/coracle-social/coracle.git
synced 2024-09-05 04:43:40 +00:00
Add memory driver for firefox
This commit is contained in:
parent
07533fc752
commit
f67435395c
BIN
package-lock.json
generated
BIN
package-lock.json
generated
Binary file not shown.
@ -36,6 +36,7 @@
|
|||||||
"hurdak": "github:ConsignCloud/hurdak",
|
"hurdak": "github:ConsignCloud/hurdak",
|
||||||
"husky": "^8.0.3",
|
"husky": "^8.0.3",
|
||||||
"localforage": "^1.10.0",
|
"localforage": "^1.10.0",
|
||||||
|
"localforage-memoryStorageDriver": "^0.9.2",
|
||||||
"nostr-tools": "^1.2.1",
|
"nostr-tools": "^1.2.1",
|
||||||
"npm-run-all": "^4.1.5",
|
"npm-run-all": "^4.1.5",
|
||||||
"ramda": "^0.28.0",
|
"ramda": "^0.28.0",
|
||||||
|
@ -1,7 +1,12 @@
|
|||||||
import lf from 'localforage'
|
import lf from 'localforage'
|
||||||
|
import memoryStorageDriver from 'localforage-memoryStorageDriver'
|
||||||
import {is, complement, equals, isNil, pipe, prop, identity, allPass} from 'ramda'
|
import {is, complement, equals, isNil, pipe, prop, identity, allPass} from 'ramda'
|
||||||
import {switcherFn} from 'hurdak/lib/hurdak'
|
import {switcherFn} from 'hurdak/lib/hurdak'
|
||||||
|
|
||||||
|
// Firefox private mode doesn't have access to any storage options
|
||||||
|
lf.defineDriver(memoryStorageDriver)
|
||||||
|
lf.setDriver([lf.INDEXEDDB, lf.WEBSQL, lf.LOCALSTORAGE, 'memoryStorageDriver'])
|
||||||
|
|
||||||
const stores = {}
|
const stores = {}
|
||||||
|
|
||||||
const getStore = storeName => {
|
const getStore = storeName => {
|
||||||
|
Loading…
Reference in New Issue
Block a user