trading-vue3-js
Version:
Customizable charting lib for traders. Based on https://github.com/C451/trading-vue-js by C451.
21 lines (15 loc) • 395 B
JavaScript
// Sends all dc.sett changes to the web-worker
export default function(sett, ww) {
const h = {
get: function(sett, k) {
return sett[k]
},
set: function(sett, k, v) {
sett[k] = v
ww.just('update-dc-settings', sett)
return true
}
}
ww.just('update-dc-settings', sett)
return new Proxy(sett, h)
}