diff options
Diffstat (limited to 'index.html')
| -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) { |