gitbook: fix generating link to the latest firmware

This commit is contained in:
Oleg Kalachev
2019-08-29 14:46:22 +03:00
parent fc89f80388
commit e254472f3d

View File

@@ -15,12 +15,12 @@ gitbook.events.bind('page.change', function() {
}
}
let el;
// let el = document.querySelector('#download-latest-release');
// el.innerHTML = stable.name;
// el.href = stable.html_url;
// document.querySelector('#release').style.display = 'block';
for (let asset of stable.assets) {
let el;
if (asset.name == 'px4fmu-v4_default.px4') {
el = document.querySelector('a.latest-firmware.v4');
} else if (asset.name == 'px4fmu-v2_lpe.px4') {