ipc: add custom JSON stringify to store

This commit is contained in:
CanadaHonk 2023-04-02 19:34:41 +01:00
parent c54e1b5876
commit f7066388c8

View File

@ -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];