From 277f311c7adc0894c6eb8e61edac6c73e4493599 Mon Sep 17 00:00:00 2001 From: randogoth Date: Mon, 22 May 2023 11:37:06 +0300 Subject: [PATCH] debug --- web/nfc-theme/static/user.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/web/nfc-theme/static/user.js b/web/nfc-theme/static/user.js index 1e7d760..4d773bb 100644 --- a/web/nfc-theme/static/user.js +++ b/web/nfc-theme/static/user.js @@ -29,11 +29,7 @@ fetch('https://nmns.place/track?' + new URLSearchParams({ hash: Cookies.get('nfcexplorer'), ua: ua, cat: cat -})).then(response => { - console.log(response.text()) +})).then(response => response.text().then((text) => { progress = document.querySelector('span#progress').content - document.querySelector('span#progress').content = response -}) -.catch(error => { - // handle the error + document.querySelector('span#progress').content = text }); \ No newline at end of file