working through bug

master
Bryan 2020-12-20 10:01:21 -06:00
parent 6a6291073a
commit 800ada38c2
1 changed files with 2 additions and 2 deletions

View File

@ -306,8 +306,8 @@
const unlockDoor = (dID, aK, d) => {
//fetch(`${unlockUrl}?deviceID=${dID}&apiKey=${aK}&delay=${d}`)
fetch(unlockUrl)
.then(response => response.json())
.then(data => messageContainer.innerHTML = data.message);
.then(response => response.text())
.then(data => messageContainer.innerHTML = data);
}
const setSettings = () => {