Skip to content

Commit 157fe75

Browse files
authored
Don't overwrite the HREFs for the Download IntelliJ/SBT buttons
This should fix scala#1285 for good. In scala#1286, it was unbeknownst to me that there was JS that ended up editing the HREFs of the IntelliJ and SBT links, and so the code that was initially broken there remained broken.
1 parent bd8f521 commit 157fe75

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

resources/js/functions.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -260,11 +260,7 @@ function getOS() {
260260
$(document).ready(function() {
261261
if ($(".main-download").length) {
262262
var os = getOS();
263-
var intelliJlink = $("#intellij-" + os).text();
264-
var sbtLink = $("#sbt-" + os).text();
265-
var stepOneContent = $("#stepOne-" + os).html()
266-
$("#download-intellij-link").attr("href", intelliJlink);
267-
$("#download-sbt-link").attr("href", sbtLink);
263+
var stepOneContent = $("#stepOne-" + os).html();
268264
$("#download-step-one").html(stepOneContent);
269265
}
270266
});

0 commit comments

Comments
 (0)