Remove sandbox mode settings and iframe sandbox branching

This commit is contained in:
2026-02-18 23:48:49 +08:00
parent 37ae0a9769
commit a183474fda
5 changed files with 14 additions and 44 deletions

View File

@@ -358,10 +358,6 @@ export function renderHtmlInIframe(htmlContent, container, preElement) {
iframe.setAttribute('scrolling', 'no');
iframe.loading = 'eager';
if (settings.sandboxMode) {
iframe.setAttribute('sandbox', 'allow-scripts');
}
const wrapper = getOrCreateWrapper(preElement);
wrapper.querySelectorAll('.xiaobaix-iframe').forEach(old => {
try { old.src = 'about:blank'; } catch (e) {}