From 12df3cc1b8c6eae8a375e281bba6b296269995d2 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Thu, 13 Jun 2024 15:52:00 -0700 Subject: fix(index.html): id defaults for placeholder --- index.html | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 673b44a..86a2c96 100644 --- a/index.html +++ b/index.html @@ -271,10 +271,14 @@ copyCodesInput.innerText = `![${inputValue}](${image.src})\n\n${inputValue}`; }; const set = () => { - if (idInput.value === "" || idInput.value === null) { - idInput.value = defaultConfiguration.id; - } else { + if (idInput.value !== "") { inputValue = idInput.value; + } else { + inputValue = defaultConfiguration.id; + + if (inputValue !== null && inputValue !== "demo") { + idInput.value = inputValue; + } } if (themeQueryParameter) { -- cgit v1.2.3