Commit 0978d488 authored by Kevin Bullock's avatar Kevin Bullock
Browse files

downloads: skip trying to fill in button if it's not there

parent 1188817fdf3a
......@@ -135,5 +135,12 @@
(function (document, window) {
var load = function () {
var versElement = document.getElementById('download-version')
, descElement = document.getElementById('download-description');
if (!(versElement && descElement)) {
return;
}
Downloader.init(sources);
window.dl = Downloader.select();
......@@ -138,7 +145,6 @@
Downloader.init(sources);
window.dl = Downloader.select();
var versElement = document.getElementById('download-version')
, descElement = document.getElementById('download-description');
versElement.appendChild(document.createTextNode(dl.attr('version')));
descElement.appendChild(document.createTextNode(dl.attr('desc')));
}
......
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