diff options
| author | Fuwn <[email protected]> | 2024-06-13 22:52:00 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-06-13 22:52:00 +0000 |
| commit | e0c18212455f389cbed597f2737d19124e89f53b (patch) | |
| tree | 81dc2acb3710e4cdc2f8450dd9202b8f5b09c098 | |
| parent | fix(index.html): replace with new url (diff) | |
| download | mayu-e0c18212455f389cbed597f2737d19124e89f53b.tar.xz mayu-e0c18212455f389cbed597f2737d19124e89f53b.zip | |
fix(index.html): id defaults for placeholder
| -rw-r--r-- | index.html | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -271,10 +271,14 @@ copyCodesInput.innerText = `\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) { |