Skip to content

Build your personal knowledge base with Trilium Notes

feat(webview): allow popups (closes #5698)

Elian Doranfe678230a8c1
diff --git a/apps/client/src/widgets/type_widgets/web_view.ts b/apps/client/src/widgets/type_widgets/web_view.ts
index 6e9b2b9d54..26575d3dca 100644
--- a/apps/client/src/widgets/type_widgets/web_view.ts
+++ b/apps/client/src/widgets/type_widgets/web_view.ts
@@ -20,7 +20,7 @@ const TPL = /*html*/`
function buildElement() {
if (!utils.isElectron()) {
- return `<iframe class="note-detail-web-view-content" sandbox="allow-same-origin allow-scripts"></iframe>`;
+ return `<iframe class="note-detail-web-view-content" sandbox="allow-same-origin allow-scripts allow-popups"></iframe>`;
} else {
return `<webview class="note-detail-web-view-content"></webview>`;
}