mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
use webview instead of iframe
This commit is contained in:
parent
ee217d6306
commit
01155ad535
@ -9,7 +9,7 @@ const TPL = `
|
|||||||
<p>Please create label with a URL address you want to embed, e.g. <code>#iframeSrc="http://www.google.com"</code></p>
|
<p>Please create label with a URL address you want to embed, e.g. <code>#iframeSrc="http://www.google.com"</code></p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<iframe class="note-detail-iframe-content"></iframe>
|
<webview class="note-detail-iframe-content"></webview>
|
||||||
</div>`;
|
</div>`;
|
||||||
|
|
||||||
export default class IframeTypeWidget extends TypeWidget {
|
export default class IframeTypeWidget extends TypeWidget {
|
||||||
|
@ -67,7 +67,8 @@ async function createMainWindow() {
|
|||||||
enableRemoteModule: true,
|
enableRemoteModule: true,
|
||||||
nodeIntegration: true,
|
nodeIntegration: true,
|
||||||
contextIsolation: false,
|
contextIsolation: false,
|
||||||
spellcheck: spellcheckEnabled
|
spellcheck: spellcheckEnabled,
|
||||||
|
webviewTag: true
|
||||||
},
|
},
|
||||||
frame: optionService.getOptionBool('nativeTitleBarVisible'),
|
frame: optionService.getOptionBool('nativeTitleBarVisible'),
|
||||||
icon: getIcon()
|
icon: getIcon()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user