Push dev work to master #2
|
@ -558,11 +558,10 @@
|
||||||
const counter = document.getElementById('counter').value;
|
const counter = document.getElementById('counter').value;
|
||||||
const change = prompt(`Change counter value?`, counter);
|
const change = prompt(`Change counter value?`, counter);
|
||||||
if (change === null || !isNumeric(change)) return false;
|
if (change === null || !isNumeric(change)) return false;
|
||||||
console.log(change);
|
|
||||||
const opts = {
|
const opts = {
|
||||||
method : 'POST',
|
method : 'POST',
|
||||||
headers : web._header,
|
headers : web._header,
|
||||||
data : JSON.stringify({ counter : change })
|
body : JSON.stringify({ counter : change })
|
||||||
}
|
}
|
||||||
fetch('/counter', opts)
|
fetch('/counter', opts)
|
||||||
.then(web.useJson)
|
.then(web.useJson)
|
||||||
|
|
Loading…
Reference in New Issue