mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 06:42:32 -05:00
refresh webhook status
This commit is contained in:
1 parent
988a5361a6
commit
4615e3e48f
10 files changed
+139
-90
No files matched your search
@@ -1,5 +1,17 @@
|
||||
export default class extends HTMLElement {
|
||||
connectedCallback () {
|
||||
this.querySelector('form').requestSubmit()
|
||||
if (this.dataset.interval) {
|
||||
this.interval = setInterval(() => {
|
||||
this.querySelector('form').requestSubmit()
|
||||
}, parseInt(this.dataset.interval))
|
||||
} else {
|
||||
this.querySelector('form').requestSubmit()
|
||||
}
|
||||
}
|
||||
|
||||
disconnectedCallback () {
|
||||
if (this.interval) {
|
||||
clearInterval(this.interval)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user