diff --git a/trigger.html b/trigger.html
index e1bb019..c93aff4 100644
--- a/trigger.html
+++ b/trigger.html
@@ -296,7 +296,7 @@
const apiKeyInput = document.querySelector("#api-key");
const showDelay = document.querySelector("#show-delay");
- global deviceID = "";
+ let deviceID = "";
let delay = "";
let apiKey = "";
const unlockUrl = "https://ths.tnet.space/cgi-bin/doorcontrol-cgi/unlock-main.cgi";