MCPcopy Index your code
hub / github.com/scriptscat/scriptcat / updateDots

Function updateDots

example/tests/gm_value_test.js:1138–1148  ·  view source on GitHub ↗
(fid, ids)

Source from the content-addressed store, hash-verified

1136 }
1137
1138 function updateDots(fid, ids) {
1139 const refs = panelRefs[fid];
1140 if (!refs) return;
1141
1142 const { dotMap } = refs;
1143 const activeKeys = new Set((ids || []).map(x => x.key));
1144
1145 for (const [k, dot] of Object.entries(dotMap)) {
1146 dot.className = 'dot' + (activeKeys.has(k) ? ' on' : '');
1147 }
1148 }
1149})();

Callers 3

registerMainListenersFunction · 0.85
removeMainListenersFunction · 0.85
gm_value_test.jsFile · 0.85

Calls 2

entriesMethod · 0.80
hasMethod · 0.65

Tested by

no test coverage detected