mirror of
https://github.com/docusealco/docuseal.git
synced 2026-08-07 07:14:43 +00:00
20 lines
358 B
JavaScript
20 lines
358 B
JavaScript
export default class extends HTMLElement {
|
|
connectedCallback () {
|
|
const input = document.createElement('input')
|
|
|
|
input.type = 'hidden'
|
|
input.name = 'password'
|
|
input.value = prompt('Enter PDF password')
|
|
|
|
this.form.append(input)
|
|
|
|
this.form.requestSubmit()
|
|
|
|
this.remove()
|
|
}
|
|
|
|
get form () {
|
|
return this.closest('form')
|
|
}
|
|
}
|