fix widget cache bug

This commit is contained in:
Stewart Allen 2021-01-29 13:25:41 -05:00
commit 27c8d157dd
3 changed files with 6 additions and 11 deletions

View file

@ -42,7 +42,7 @@
if (KIRI.worker)
KIRI.worker.cam_traces = function(data, send) {
const { settings } = data;
const widgets = Object.values(cache);
const widgets = Object.values(wcache);
const fresh = widgets.filter(widget => CAM.traces(settings, widget));
send.done(KIRI.codec.encode(fresh.map(widget => { return {
id: widget.id,