From 869030958ad4a26eae93c5e9d7b7b8891f0ee036 Mon Sep 17 00:00:00 2001 From: Misha Gusev Date: Sun, 15 Sep 2024 16:41:57 +0300 Subject: [PATCH] Update main.js --- src/js/main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/js/main.js b/src/js/main.js index d03fc31..26cb6f6 100644 --- a/src/js/main.js +++ b/src/js/main.js @@ -161,7 +161,7 @@ document.querySelector("#app").innerHTML = ` @keyup.enter="if (await checkNickname(nickname)) { getPreview(); search = true; main();} else { alert = true; setTimeout(() => alert = false, 5000)}" x-model="hdevApiKey" class="nickname" - id="nickname_with_tag" + id="hdevApi" placeholder="HDEV API KEY" autocomplete="off" /> @@ -573,6 +573,7 @@ document.querySelector("#app").innerHTML = ` `; async function getPreview() { + const hdevApiKey = document.getElementById("hdevApi"); // Get Nickname, Tag, Region const inputNicknameWithTag = document.getElementById("nickname_with_tag"); const nicknameWithTag = inputNicknameWithTag.value;