From 00ce9ef88bc2f983a85165b121c1d64476869813 Mon Sep 17 00:00:00 2001 From: ale Date: Mon, 18 Nov 2024 06:36:25 +0100 Subject: [PATCH] correct eval Signed-off-by: ale --- public/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = ''