Added Mac Build Download URL

This commit is contained in:
=bhagwanSingh 2025-12-19 18:59:26 +05:30
parent 221e867a21
commit 0c14e26937
1 changed files with 11 additions and 3 deletions

View File

@ -171,12 +171,20 @@
// -------- Download --------
downloadBtn.addEventListener("click", () => {
const activeBtn = document.querySelector(".os-btn.active")
const os = activeBtn.dataset.os;
const link = document.createElement("a");
if(os === "mac") {
link.href = `/public/builds/build-1.1.1.1/mac/VA Tracker-1.1.1-universal.dmg`;
link.setAttribute("download", "");
} else if (os === "windows") {
link.href = `/public/builds/build-1.1.1.1/windows/VA Tracker-Setup-1.1.1.exe`;
link.setAttribute("download", "");
link.click()
}
link.click()
// window.location.href = ``;
});
</script>