From b0adeaef8a06a32d8abdd0d7b0b776018435b77e Mon Sep 17 00:00:00 2001 From: randogoth Date: Mon, 22 May 2023 11:51:23 +0300 Subject: [PATCH] debug --- web/nfc-theme/static/user.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/nfc-theme/static/user.js b/web/nfc-theme/static/user.js index b2a65ed..b07297c 100644 --- a/web/nfc-theme/static/user.js +++ b/web/nfc-theme/static/user.js @@ -29,9 +29,9 @@ fetch('https://nmns.place/track?' + new URLSearchParams({ hash: Cookies.get('nfcexplorer'), ua: ua, cat: cat -})).then(response => response.text().then((text) => { - console.log(text) - document.querySelector('span#progress').innerHTML = text + 'of' + document.querySelector('span#progress').innerHTML +})).then(response => response.text().then((progress) => { + total = document.querySelector('span#progress').innerHTML + document.querySelector('span#progress').innerHTML = progress + ' of ' + total })) .catch(error => { // handle the error