From 5f163d279cd2038de213e13919bdb51788b71ed7 Mon Sep 17 00:00:00 2001 From: Coia Prant Date: Fri, 30 May 2025 22:46:00 +0800 Subject: [PATCH] Fix download button href replace jQuery was dropped. Link: https://github.com/git-for-windows/git-for-windows.github.io/pull/62 Replace download button href replace to `getElementById` Signed-off-by: Coia Prant --- layouts/_default/baseof.html | 2 +- layouts/partials/header.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 234c0b80..943c25c4 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -45,7 +45,7 @@ var architecture = browser.architecture == "arm" ? "arm64" : "64-bit"; var url = href[1] + 'download' + href[2] + '/Git-' + version[1] + '-' + architecture + '.exe'; - $('a.button:contains("Download")')[0].href = url; + document.getElementById("download").href = url; }) } catch(e) {} {{ end -}} diff --git a/layouts/partials/header.html b/layouts/partials/header.html index f78680b7..c26b33f5 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -17,7 +17,7 @@

We bring the awesome Git SCM to Windows

- Download + Download Contribute