UNPKG

dictate-button

Version:

Customizable Web Component that adds speech-to-text dictation capabilities to text fields

13 lines (12 loc) 448 B
import { injectDictateButton as o } from "./injectDictateButton.js"; function u(t, e = {}) { const { watchDomChanges: r = !1 } = e, n = () => { o(t, e), r && document.body && new MutationObserver(() => { o(t, e); }).observe(document.body, { childList: !0, subtree: !0 }); }; document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", n, { once: !0 }) : n(); } export { u as injectDictateButtonOnLoad };