mirror of
https://github.com/9001/copyparty.git
synced 2026-09-24 21:30:22 +01: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