From 88e517dc232be8f53f8f73df93e97ac18007fbac Mon Sep 17 00:00:00 2001 From: Bryan Date: Sun, 20 Dec 2020 01:00:48 -0600 Subject: [PATCH] change fetch url to troubleshoot error --- trigger.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/trigger.html b/trigger.html index c93aff4..ff0f043 100644 --- a/trigger.html +++ b/trigger.html @@ -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); }