MCPcopy
hub / github.com/garrytan/gstack / pushModification

Function pushModification

browse/src/cdp-inspector.ts:156–162  ·  view source on GitHub ↗
(mod: StyleModification)

Source from the content-addressed store, hash-verified

154let modHistoryTotalPushed = 0;
155
156function pushModification(mod: StyleModification): void {
157 modificationHistory.push(mod);
158 modHistoryTotalPushed++;
159 while (modificationHistory.length > MOD_HISTORY_CAP) {
160 modificationHistory.shift();
161 }
162}
163
164// Test-only entry: exposes the history-cap mechanics (push, reset, cap value)
165// without requiring a CDP-driven Page. Production code must go through

Callers 2

modifyStyleFunction · 0.85

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected