允许点击iframe中的超链接

This commit is contained in:
Furrium Network authored and GitHub committed 2026-08-12 09:15:59 +08:00
1 parent 46dd281c7b
commit 320000c8b9
1 file changed
+1 -1
+1 -1
View File
@@ -458,7 +458,7 @@ function showCustomPage(pageName) {
API.getCustomPage(pageName).then(page => {
const iframe = document.createElement('iframe');
iframe.style.cssText = 'width:100%;min-height:70vh;border:none;border-radius:8px;background:var(--surface);';
iframe.sandbox = 'allow-scripts allow-modals';
iframe.sandbox = 'allow-scripts allow-modals allow-top-navigation allow-same-origin';
iframe.srcdoc = `
<!DOCTYPE html>
<html>