Add zap repeat interval; flash countdown when expired

This commit is contained in:
2026-08-18 23:55:45 -04:00
parent 66b2d5e53e
commit 1cb88560ef
6 changed files with 31 additions and 7 deletions
-2
View File
@@ -23,10 +23,8 @@ function callAPI(apiKey, zap_intensity) {
reason: 'Trigalarm'
}
});
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.open('POST', 'https://api.pavlok.com/api/v5/stimulus/send');
xhr.setRequestHeader('accept', 'application/json');
xhr.setRequestHeader('content-type', 'application/json');