From a88796ff28e0a291a197d2df7ae1397f71dcc0d9 Mon Sep 17 00:00:00 2001 From: Bryan Date: Sun, 20 Dec 2020 10:32:54 -0600 Subject: [PATCH] bug fix --- trigger.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trigger.html b/trigger.html index d2b5a42..e8abbc5 100644 --- a/trigger.html +++ b/trigger.html @@ -305,8 +305,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 = () => {