mirror of
https://github.com/zadam/trilium.git
synced 2025-10-09 15:08:14 +08:00
feat(webview): allow popups (closes #5698)
This commit is contained in:
parent
b566a188dc
commit
fe678230a8
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue