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); }