bugfix...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2022-10-15 13:42:51 +03:00
parent 8d6923cff7
commit 65f0c6823d
2 changed files with 4 additions and 2 deletions

View File

@ -62,8 +62,9 @@ Promise.all([
// persistent stores...
//
store.update('/Stores/localStorage', {
store.update('Stores/localStorage', {
__proto__: localstoragestore.localStorageStore,
__prefix__: '--pwiki-nested:',
data: localStorage,
}),
store.update('Stores/sessionStorage', {
@ -76,7 +77,7 @@ Promise.all([
store.update('Stores/IndexedDB', {
__proto__: indexeddb.IndexedDBStore,
}),
store.update('Stores/memory', {
store.update('/Stores/memory', {
__proto__: basestore.MetaStore,
data: {
'': {text: 'memory store'},

View File

@ -742,6 +742,7 @@ module.MetaStore = {
: data
// add substore...
if(object.childOf(data, BaseStore)){
path = pwpath.sanitize(path, 'string')
;(this.substores = this.substores ?? {})[path] = data
return this }
// add to substore...