mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 06:42:32 -05:00
adjust downlaod
This commit is contained in:
1 parent
87b57279a4
commit
05fa75f9a2
1 file changed
+7
-1
@@ -23,7 +23,13 @@ export default targetable(class extends HTMLElement {
|
||||
|
||||
const download = window.webkit?.messageHandlers?.download
|
||||
|
||||
if (download) return download.postMessage({ src: this.dataset.src })
|
||||
if (download) {
|
||||
this.toggleState()
|
||||
|
||||
document.addEventListener('native:download-end', () => this.toggleState(), { once: true })
|
||||
|
||||
return download.postMessage({ src: this.dataset.src })
|
||||
}
|
||||
|
||||
this.toggleState()
|
||||
|
||||
|
||||
Reference in new issue
Block a user