mirror of
https://github.com/zadam/trilium.git
synced 2025-10-21 15:49:00 +02:00
feat(webview): allow popups (closes #5698)
This commit is contained in:
parent
b566a188dc
commit
fe678230a8
@ -20,7 +20,7 @@ const TPL = /*html*/`
|
|||||||
|
|
||||||
function buildElement() {
|
function buildElement() {
|
||||||
if (!utils.isElectron()) {
|
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 {
|
} else {
|
||||||
return `<webview class="note-detail-web-view-content"></webview>`;
|
return `<webview class="note-detail-web-view-content"></webview>`;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user