diff --git a/examples/device-dashboard/web_root/main.js b/examples/device-dashboard/web_root/main.js index 9ab41ba1..efa5f68d 100644 --- a/examples/device-dashboard/web_root/main.js +++ b/examples/device-dashboard/web_root/main.js @@ -55,15 +55,8 @@ function Events({}) { const [page, setPage] = useState(1); const refresh = () => - fetch('/api/events/get', - { - method: 'POST', - headers: { - 'Content-Type': 'application/json', - }, - body: JSON.stringify({ - page: page - }), + fetch('/api/events/get', { + method: 'POST', body: JSON.stringify({page: page}), }).then(r => r.json()) .then(r => setEvents(r));