diff options
| author | Fuwn <[email protected]> | 2024-06-13 15:52:00 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-06-13 15:52:00 -0700 |
| commit | 12df3cc1b8c6eae8a375e281bba6b296269995d2 (patch) | |
| tree | 81dc2acb3710e4cdc2f8450dd9202b8f5b09c098 | |
| parent | 038dffe3c35f1bff0a2aec79742648b92cda2fb9 (diff) | |
| download | mayu-12df3cc1b8c6eae8a375e281bba6b296269995d2.tar.xz mayu-12df3cc1b8c6eae8a375e281bba6b296269995d2.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) { |