aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-06-13 15:52:00 -0700
committerFuwn <[email protected]>2024-06-13 15:52:00 -0700
commit12df3cc1b8c6eae8a375e281bba6b296269995d2 (patch)
tree81dc2acb3710e4cdc2f8450dd9202b8f5b09c098
parent038dffe3c35f1bff0a2aec79742648b92cda2fb9 (diff)
downloadmayu-12df3cc1b8c6eae8a375e281bba6b296269995d2.tar.xz
mayu-12df3cc1b8c6eae8a375e281bba6b296269995d2.zip
fix(index.html): id defaults for placeholder
-rw-r--r--index.html10
1 files 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<img src="${image.src}" alt="${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) {