mirror of
https://github.com/flynx/pWiki.git
synced 2025-12-17 08:31:38 +00:00
bugfix...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
8d6923cff7
commit
65f0c6823d
@ -62,8 +62,9 @@ Promise.all([
|
|||||||
|
|
||||||
// persistent stores...
|
// persistent stores...
|
||||||
//
|
//
|
||||||
store.update('/Stores/localStorage', {
|
store.update('Stores/localStorage', {
|
||||||
__proto__: localstoragestore.localStorageStore,
|
__proto__: localstoragestore.localStorageStore,
|
||||||
|
__prefix__: '--pwiki-nested:',
|
||||||
data: localStorage,
|
data: localStorage,
|
||||||
}),
|
}),
|
||||||
store.update('Stores/sessionStorage', {
|
store.update('Stores/sessionStorage', {
|
||||||
@ -76,7 +77,7 @@ Promise.all([
|
|||||||
store.update('Stores/IndexedDB', {
|
store.update('Stores/IndexedDB', {
|
||||||
__proto__: indexeddb.IndexedDBStore,
|
__proto__: indexeddb.IndexedDBStore,
|
||||||
}),
|
}),
|
||||||
store.update('Stores/memory', {
|
store.update('/Stores/memory', {
|
||||||
__proto__: basestore.MetaStore,
|
__proto__: basestore.MetaStore,
|
||||||
data: {
|
data: {
|
||||||
'': {text: 'memory store'},
|
'': {text: 'memory store'},
|
||||||
|
|||||||
@ -742,6 +742,7 @@ module.MetaStore = {
|
|||||||
: data
|
: data
|
||||||
// add substore...
|
// add substore...
|
||||||
if(object.childOf(data, BaseStore)){
|
if(object.childOf(data, BaseStore)){
|
||||||
|
path = pwpath.sanitize(path, 'string')
|
||||||
;(this.substores = this.substores ?? {})[path] = data
|
;(this.substores = this.substores ?? {})[path] = data
|
||||||
return this }
|
return this }
|
||||||
// add to substore...
|
// add to substore...
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user