mirror of
https://github.com/docusealco/docuseal
synced 2026-11-05 14:42:33 -05:00
make submission header buttons native
This commit is contained in:
1 parent
359f695eb5
commit
9abdb68bc5
5 files changed
+79
-55
No files matched your search
@@ -21,6 +21,10 @@ export default targetable(class extends HTMLElement {
|
||||
downloadFiles () {
|
||||
if (!this.dataset.src) return
|
||||
|
||||
const download = window.webkit?.messageHandlers?.download
|
||||
|
||||
if (download) return download.postMessage({ src: this.dataset.src })
|
||||
|
||||
this.toggleState()
|
||||
|
||||
fetch(this.dataset.src).then(async (response) => {
|
||||
|
||||
Reference in new issue
Block a user