MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / toggle

Function toggle

e2e/viewer/src/SessionPlayer.tsx:232–240  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

230 };
231
232 const toggle = async () => {
233 const next = !playing;
234 setPlaying(next);
235 if (next && tRef.current >= duration - 0.1) {
236 tRef.current = 0;
237 setT(0);
238 }
239 await apply(tRef.current, next);
240 };
241
242 // Live URL: the last main-frame navigation at-or-before "now" (wall).
243 const wallNow = sessionStart + t * 1000;

Callers

nothing calls this directly

Calls 1

applyFunction · 0.70

Tested by

no test coverage detected