docs: fix link to the latest firmware

This commit is contained in:
Oleg Kalachev
2019-09-10 16:21:00 +03:00
parent 2e7bcde38e
commit fc1df980ff
3 changed files with 3 additions and 3 deletions

View File

@@ -37,7 +37,7 @@ gitbook.events.bind('page.change', function() {
// show link to latest raspberry image
gitbook.events.bind('page.change', function() {
var el = document.querySelector('a.latest-image');
if (el.length) return;
if (el) return;
// get latest release from GitHub
fetch('https://api.github.com/repos/CopterExpress/clever/releases').then(function(res) {