change fetch url to troubleshoot error

master
Bryan 2020-12-20 01:00:48 -06:00
parent 1bc24c2453
commit 88e517dc23
1 changed files with 2 additions and 1 deletions

View File

@ -303,7 +303,8 @@
// make fetch function that calls cgi script with attributes (device id, api key, delay)
const unlockDoor = (dID, aK, d) => {
fetch(`${unlockUrl}?deviceID=${dID}&apiKey=${aK}&delay=${d}`)
//fetch(`${unlockUrl}?deviceID=${dID}&apiKey=${aK}&delay=${d}`)
fetch(unlockUrl)
.then(response => response.json())
.then(data => messageContainer.innerHTML = data.message);
}