CenterForDigitalHumanities / CenterForDigitalHumanities/TPEN-interfaces

Extract shared toolMessages handler for iframe communications

Open
#387 0 comments 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.