make submission header buttons native

This commit is contained in:
Alex Turchyn authored and Pete Matsyburka committed 2026-09-23 10:59:54 +03:00
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) => {