ipc: add custom JSON stringify to store
This commit is contained in:
parent
c54e1b5876
commit
f7066388c8
@ -99,7 +99,8 @@ Gluon.ipc.store = new Proxy({
|
||||
return value;
|
||||
},
|
||||
|
||||
keys: () => Object.keys(_store)
|
||||
keys: () => Object.keys(_store),
|
||||
toJSON: () => _store
|
||||
}, {
|
||||
get(target, key) {
|
||||
return target[key] ?? _store[key];
|
||||
@ -251,7 +252,8 @@ delete window._gluonSend;
|
||||
return value;
|
||||
},
|
||||
|
||||
keys: () => Object.keys(_store)
|
||||
keys: () => Object.keys(_store),
|
||||
toJSON: () => _store
|
||||
}, {
|
||||
get(target, key) {
|
||||
return target[key] ?? _store[key];
|
||||
|
Loading…
x
Reference in New Issue
Block a user