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...
|
||||
//
|
||||
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'},
|
||||
|
||||
@ -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...
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user