diff --git a/public/main.js b/public/main.js index a1e6265..5e05590 100644 --- a/public/main.js +++ b/public/main.js @@ -38,7 +38,7 @@ document.addEventListener('DOMContentLoaded', function () { loading() fetch('/api/block_count/' + content).then(async function (result) { var res = await result.text() - if (res?.length >= 0) { + if (res?.length > 0) { document.getElementById('blockcount').innerText = res.split('\n').length document.getElementById('blockinstance').innerText = 'ing ' + content document.getElementById('blocktook').innerText = ''