aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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) {