fix dupe logue on !js hydrate

This commit is contained in:
ed 2026-08-16 18:20:11 +00:00
parent dcc0abd696
commit eeb399e3c9

View file

@ -9337,6 +9337,7 @@ function sandbox(tgt, rules, allow, cls, html) {
fr.setAttribute('sandbox', rules ? 'allow-' + rules.replace(/ /g, ' allow-') : ''); fr.setAttribute('sandbox', rules ? 'allow-' + rules.replace(/ /g, ' allow-') : '');
fr.setAttribute('allow', allow); fr.setAttribute('allow', allow);
fr.setAttribute('srcdoc', html); fr.setAttribute('srcdoc', html);
tgt.innerHTML = '';
tgt.appendChild(fr); tgt.appendChild(fr);
treectl.sb_msg = true; treectl.sb_msg = true;
return true; return true;