pinafore/routes/_components/dialog/helpers/createDialogElement.js
2018-04-08 16:56:20 -07:00

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
}