Commit 4b88b3c4 authored by Kevin Bullock's avatar Kevin Bullock
Browse files

downloads: initialize downloader from sources.js earlier

c65b81353b8f inadvertently broke the /downloads page by moving the call
to Downloader.init(sources) later in the rendering process, after the
downloads list has already been written. As a stopgap, we introduce an
earlier call to initialize the versions before attempting to render the
list. Future changes will move this inline script into an onload
function.
parent c65b81353b8f
......@@ -4,6 +4,7 @@
<h1>Mercurial downloads</h1>
<script language="javascript">
Downloader.init(sources);
var versions = Downloader.versions();
var more = Downloader.maxversions &&
versions.length > Downloader.maxversions;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment