Modify top-users.js

This commit is contained in:
hok7z 2022-12-14 16:15:08 +02:00
parent 37851c5dc5
commit c413dbb577
1 changed files with 1 additions and 5 deletions

View File

@ -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}`);