pinafore/src/routes/_utils/announceAriaLivePolite.js

6 wiersze
170 B
JavaScript

const ariaLiveElement = process.browser && document.getElementById('theAriaLive')
export function announceAriaLivePolite (text) {
ariaLiveElement.textContent = text
}