[PATCH 1 of 3 website] downloads: fix download on front page since c65b81353b8f

Kevin Bullock kbullock+mercurial at ringworld.org
Wed Jul 5 15:27:10 EDT 2017


# HG changeset patch
# User Kevin Bullock <kbullock+mercurial at ringworld.org>
# Date 1499282568 18000
#      Wed Jul 05 14:22:48 2017 -0500
# Node ID 23ff698c5dbb8d205fb81230b4e41db837cfb624
# Parent  6f3cfd6dcc28ac0d2aa35f19e48fe221293f16b7
downloads: fix download on front page since c65b81353b8f

diff --git a/static/js/download.js b/static/js/download.js
--- a/static/js/download.js
+++ b/static/js/download.js
@@ -136,7 +136,7 @@ var Downloader = {
 (function (document, window) {
   var load = function () {
     Downloader.init(sources);
-    var dl = Downloader.select();
+    window.dl = Downloader.select();
     var versElement = document.getElementById('download-version')
       , descElement = document.getElementById('download-description');
     versElement.appendChild(document.createTextNode(dl.attr('version')));


More information about the Mercurial-devel mailing list