MCPcopy Create free account
hub / github.com/OpenOSINT/OpenOSINT / _set_state

Function _set_state

media/record_demo.py:67–76  ·  view source on GitHub ↗
(page, js: str)

Source from the content-addressed store, hash-verified

65
66# Each call to _set_state(page, JS_EXPR) injects one animation frame
67def _set_state(page, js: str) -> None:
68 page.evaluate(f"""
69 () => {{
70 const data = Alpine.$data(
71 document.querySelector('[x-data="openosint"]')
72 );
73 if (!data) return;
74 {js}
75 }}
76 """)
77
78
79def log(msg: str) -> None:

Callers 1

recordFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected