show something useful when preview is empty
This commit is contained in:
@@ -152,6 +152,8 @@ export default class {
|
|||||||
const ta = document.getElementById('babycode-content');
|
const ta = document.getElementById('babycode-content');
|
||||||
const markup = ta.value.trim();
|
const markup = ta.value.trim();
|
||||||
if (markup === '' || markup === this.#previousMarkup) {
|
if (markup === '' || markup === this.#previousMarkup) {
|
||||||
|
previewErrorsContainer.textContent = 'Type something!';
|
||||||
|
previewContainer.textContent = '';
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const bannedTags = JSON.parse(document.getElementById('babycode-banned-tags').value);
|
const bannedTags = JSON.parse(document.getElementById('babycode-banned-tags').value);
|
||||||
|
|||||||
Reference in New Issue
Block a user