diff --git a/app/www/index.html b/app/www/index.html index 5081de7..52e2514 100644 --- a/app/www/index.html +++ b/app/www/index.html @@ -558,11 +558,10 @@ const counter = document.getElementById('counter').value; const change = prompt(`Change counter value?`, counter); if (change === null || !isNumeric(change)) return false; - console.log(change); const opts = { method : 'POST', headers : web._header, - data : JSON.stringify({ counter : change }) + body : JSON.stringify({ counter : change }) } fetch('/counter', opts) .then(web.useJson)