force download

This commit is contained in:
Ross
2020-04-29 18:18:37 +01:00
parent 5c2e1a0f3d
commit 1230fddb2e
+1 -1
View File
@@ -62,7 +62,7 @@ function loadPacketList(data) {
})
.append(
$(
`<div class='save-button' title='Download packet for offline use (or to save bandwidth)'><a href='packets/${packet}'>💾</a></div>`
`<div class='save-button' title='Download packet for offline use (or to save bandwidth)'><a href='packets/${packet}' download='${packet}'>💾</a></div>`
).click(function () {
console.log("packets/" + packet);
event.stopPropagation();