mirror of https://github.com/docusealco/docuseal
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
389 B
17 lines
389 B
export default class extends HTMLElement {
|
|
connectedCallback () {
|
|
const src = this.getAttribute('src')
|
|
const link = document.createElement('a')
|
|
|
|
link.href = src
|
|
link.setAttribute('data-turbo-frame', 'modal')
|
|
link.style.display = 'none'
|
|
|
|
this.appendChild(link)
|
|
|
|
link.click()
|
|
|
|
window.history.replaceState({}, document.title, window.location.pathname)
|
|
}
|
|
}
|