mirror of
https://github.com/9001/copyparty.git
synced 2026-03-28 19:12:46 +10:00
indicate when a readme/logue was hidden
This commit is contained in:
@@ -6743,6 +6743,10 @@ if (readme)
|
||||
|
||||
|
||||
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) {
|
||||
tgt.innerHTML = html;
|
||||
clmod(tgt, 'sb');
|
||||
|
||||
Reference in New Issue
Block a user