Pinafore-Web-Client-Frontend/routes/_components/dialog/helpers/createDialogElement.js

8 lines
217 B
JavaScript

export function createDialogElement () {
let div = document.createElement('div')
div.setAttribute('class', 'modal-dialog')
div.setAttribute('aria-hidden', 'true')
document.body.appendChild(div)
return div
}