From c3e1c257c8acca00a67e01483d6b3a31200e641d Mon Sep 17 00:00:00 2001 From: CyberRoute Date: Tue, 28 Nov 2023 14:39:50 +0100 Subject: [PATCH] removing useless .toFixed(0) --- static/js/fetchurls.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/static/js/fetchurls.js b/static/js/fetchurls.js index f14bdc0..23f5768 100755 --- a/static/js/fetchurls.js +++ b/static/js/fetchurls.js @@ -21,14 +21,14 @@ function fetchUrls() { let urlDisplay; if (url.status === 301) { // For 301 status code, use redirectpath - urlDisplay = `

${url.id} ${url.path} - REDIRECTS TO: ${url.redirectpath} - http code: ${url.status} progress: ${url.progress} ${url.data}

`; + urlDisplay = `

${url.id} ${url.path} - REDIRECTS TO: ${url.redirectpath} - http code: ${url.status} progress: ${url.progress}% ${url.data}

`; } else if (url.status === 302) { // For 302 status code, concatenate path and redirectpath let targetPath = url.redirectpath ? url.path + url.redirectpath : url.path; - urlDisplay = `

${url.id} ${url.path} - REDIRECTS TO: ${targetPath} - http code: ${url.status} progress: ${url.progress} ${url.data}

`; + urlDisplay = `

${url.id} ${url.path} - REDIRECTS TO: ${targetPath} - http code: ${url.status} progress: ${url.progress}% ${url.data}

`; } else { // For other status codes (200), use the original path - urlDisplay = `

${url.id} ${url.path} - http code: ${url.status} progress: ${url.progress.toFixed(0)}% ${url.data}

`; + urlDisplay = `

${url.id} ${url.path} - http code: ${url.status} progress: ${url.progress}% ${url.data}

`; } container.innerHTML += urlDisplay;