CenterForDigitalHumanities / CenterForDigitalHumanities/TPEN-interfaces
Extract shared toolMessages handler for iframe communications
Open
enhancement
- Dominant language
- JavaScript
- Stars
- 2
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Description
#handleToolMessages is duplicated in simple and full transcription interfaces. Create a small importable utility (e.g., utilities/toolMessages.js) that accepts hooks for getPage, setActiveLineIndex, and updateLines, and centralizes origin validation and line-id resolution. Update both interfaces to use it. Acceptance: both interfaces import the utility; behavior unchanged; origin validation retained.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.