-the counter don't stop
This commit is contained in:
parent
3c58b3bef5
commit
2d95efcaf8
10 changed files with 19 additions and 21 deletions
|
@ -57,6 +57,7 @@
|
|||
}
|
||||
} else if (Msg.mode === 'time') {
|
||||
console.log(`duration: ${Msg.duration}`);
|
||||
min, sec = Msg.duration.split(":");
|
||||
} else if (Msg.mode === 'stop') {
|
||||
console.log(`stop duration: ${Msg.duration}`);
|
||||
end = true;
|
||||
|
@ -95,19 +96,13 @@
|
|||
const res = await fetch(`/api/start`, {
|
||||
method: 'POST',
|
||||
body: JSON.stringify({
|
||||
duration: "10m0s",
|
||||
duration: "0m25s",
|
||||
mode: 'time'
|
||||
}),
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
}
|
||||
});
|
||||
console.log(
|
||||
JSON.stringify({
|
||||
duration: "10m0s",
|
||||
mode: 'time'
|
||||
})
|
||||
);
|
||||
console.log(`retval: ${JSON.stringify(res)}`);
|
||||
start = true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue