aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-06-13 22:52:00 +0000
committerFuwn <[email protected]>2024-06-13 22:52:00 +0000
commite0c18212455f389cbed597f2737d19124e89f53b (patch)
tree81dc2acb3710e4cdc2f8450dd9202b8f5b09c098
parentfix(index.html): replace with new url (diff)
downloadmayu-e0c18212455f389cbed597f2737d19124e89f53b.tar.xz
mayu-e0c18212455f389cbed597f2737d19124e89f53b.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) {