MCPcopy
hub / github.com/darkreader/darkreader / set

Function set

src/inject/dynamic-theme/stylesheet-proxy.ts:309–315  ·  view source on GitHub ↗
(target, property, value)

Source from the content-addressed store, hash-verified

307 return true;
308 },
309 set(target, property, value) {
310 target[property as any] = value;
311 if (property === 'length') {
312 onAdoptedSheetsChange(node);
313 }
314 return true;
315 },
316 });
317 adoptedSheetsSourceProxies.set(source, proxy);
318 adoptedSheetsProxySources.set(proxy, source);

Callers

nothing calls this directly

Calls 1

onAdoptedSheetsChangeFunction · 0.70

Tested by

no test coverage detected