mirror of
https://github.com/zadam/trilium.git
synced 2025-11-10 00:19:04 +01:00
chore(share): use same sandbox features for iframe
This commit is contained in:
parent
945f29c759
commit
99fd088ff5
@ -421,7 +421,7 @@ function renderWebView(note: SNote | BNote, result: Result) {
|
|||||||
const url = note.getLabelValue("webViewSrc");
|
const url = note.getLabelValue("webViewSrc");
|
||||||
if (!url) return;
|
if (!url) return;
|
||||||
|
|
||||||
result.content = `<iframe class="webview" src="${sanitizeUrl(url)}"></iframe>`;
|
result.content = `<iframe class="webview" src="${sanitizeUrl(url)}" sandbox="allow-same-origin allow-scripts allow-popups"></iframe>`;
|
||||||
}
|
}
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user