From c413dbb577c08ad56957429f6dc865e9f9fcb080 Mon Sep 17 00:00:00 2001 From: hok7z Date: Wed, 14 Dec 2022 16:15:08 +0200 Subject: [PATCH] Modify top-users.js --- static/js/top-users.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/static/js/top-users.js b/static/js/top-users.js index 6705db6..6516d38 100644 --- a/static/js/top-users.js +++ b/static/js/top-users.js @@ -1,8 +1,4 @@ -fetch("/top_users?number=5", { - // method: 'POST', - headers: {'Content-Type': 'application/json'} - // body: JSON.stringify({number:5}) -}) +fetch("/top_users?number=5") .then(response => { if (!response.ok) { throw new Error(`HTTP error: ${response.status}`);