允许点击iframe中的超链接
This commit is contained in:
1 parent
46dd281c7b
commit
320000c8b9
1 file changed
+1
-1
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user