Skip to content

Commit 34b5525

Browse files
authored
Merge pull request #1509 from FoamyGuy/fix_language_beta_download
fix language selection for beta download
2 parents ea3739e + 06b6408 commit 34b5525

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

assets/javascript/download.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ function updateFileLinks(option, language) {
4646
files.forEach(function(file) {
4747
var extension = file.substr(file.lastIndexOf('.') + 1);
4848
parentNode.querySelector(".download-button." + extension).href = file;
49-
parentNode.querySelector(".installer-button").setAttribute(extension + "file", file);
49+
if (parentNode.querySelector(".installer-button") !== null){
50+
parentNode.querySelector(".installer-button").setAttribute(extension + "file", file);
51+
}
5052
});
5153
}
5254

0 commit comments

Comments
 (0)