Skip to content

Commit ec275b8

Browse files
authored
Merge pull request #76 from rbqvq/href-fix
Fix download button href replace
2 parents 393c2d2 + 5f163d2 commit ec275b8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

layouts/_default/baseof.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545

4646
var architecture = browser.architecture == "arm" ? "arm64" : "64-bit";
4747
var url = href[1] + 'download' + href[2] + '/Git-' + version[1] + '-' + architecture + '.exe';
48-
$('a.button:contains("Download")')[0].href = url;
48+
document.getElementById("download").href = url;
4949
})
5050
} catch(e) {}
5151
{{ end -}}

layouts/partials/header.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<div class="vcentercontainer">
1818
<div>
1919
<h2>We bring the awesome <span class="gittext">Git</span> SCM to Windows</h2>
20-
<a name="download" /><a class="button featurebutton" href="https://github.com/git-for-windows/git/releases/latest" target="_blank">Download</a>
20+
<a id="download" class="button featurebutton" href="https://github.com/git-for-windows/git/releases/latest" target="_blank">Download</a>
2121
<a class="button featurebutton" href="#contribute">Contribute</a>
2222
</div>
2323
</div>

0 commit comments

Comments
 (0)