UNPKG

@nodecg/types

Version:

Dynamic broadcast graphics rendered in a browser

17 lines (14 loc) 548 B
(function() { //#region src/client/dashboard/js/dialog_opener.ts document.addEventListener("click", (e) => { const nodecg = window.nodecg; const elWithDialogAttr = e.composedPath()[0].closest("[nodecg-dialog]"); if (elWithDialogAttr) { const dialogName = elWithDialogAttr.getAttribute("nodecg-dialog"); const dialogId = `${nodecg.bundleName}_${dialogName}`; window.top.document.querySelector("ncg-dashboard").shadowRoot.getElementById(dialogId).open(); } }, false); //#endregion })(); //# sourceMappingURL=dialog_opener.js.map