From 3a9f8a111bfd671cf11a44859fa97d0a2ac19fc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lera=20Elvo=C3=A9?= Date: Sat, 29 Nov 2025 07:07:46 +0300 Subject: [PATCH] show something useful when preview is empty --- data/static/js/bitties/pyrom-bitty.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/data/static/js/bitties/pyrom-bitty.js b/data/static/js/bitties/pyrom-bitty.js index bd9cd05..88a190b 100644 --- a/data/static/js/bitties/pyrom-bitty.js +++ b/data/static/js/bitties/pyrom-bitty.js @@ -152,6 +152,8 @@ export default class { const ta = document.getElementById('babycode-content'); const markup = ta.value.trim(); if (markup === '' || markup === this.#previousMarkup) { + previewErrorsContainer.textContent = 'Type something!'; + previewContainer.textContent = ''; return; } const bannedTags = JSON.parse(document.getElementById('babycode-banned-tags').value);