From 800ada38c2e81b584046544b3bdabfc02a930dbd Mon Sep 17 00:00:00 2001 From: Bryan Date: Sun, 20 Dec 2020 10:01:21 -0600 Subject: [PATCH] working through bug --- trigger.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trigger.html b/trigger.html index edd2517..915699d 100644 --- a/trigger.html +++ b/trigger.html @@ -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 = () => {