indicate when a readme/logue was hidden

This commit is contained in:
ed 2023-01-31 19:01:24 +00:00
parent d8dfc4ccb2
commit 712a578e6c

View file

@ -6743,6 +6743,10 @@ if (readme)
function sandbox(tgt, rules, cls, html) { function sandbox(tgt, rules, cls, html) {
if (!treectl.ireadme) {
tgt.innerHTML = html ? '[📜<em>readme</em>] disabled in [⚙️] -- document hidden' : '';
return;
}
if (!rules || (html || '').indexOf('<') == -1) { if (!rules || (html || '').indexOf('<') == -1) {
tgt.innerHTML = html; tgt.innerHTML = html;
clmod(tgt, 'sb'); clmod(tgt, 'sb');