(document: Document)
| 320 | } |
| 321 | |
| 322 | export function getGsapScript(document: Document): string | null { |
| 323 | const el = findGsapScriptElement(document); |
| 324 | return el ? (el.textContent ?? "") : null; |
| 325 | } |
| 326 | |
| 327 | export function setGsapScript(document: Document, newScript: string): void { |
| 328 | const existing = findGsapScriptElement(document); |
no test coverage detected